Packages

 

com.groupdocs.comparison.common.logger

Class ConsoleLogger

  • All Implemented Interfaces:
    com.aspose.ms.System.IDisposable, ILogger


    public class ConsoleLogger
    extends Object
    implements ILogger, com.aspose.ms.System.IDisposable

    Class ConsoleLogger

    • Constructor Summary

      Constructors 
      Constructor and Description
      ConsoleLogger()
      Initializes a new instance of the ConsoleLogger class.
      ConsoleLogger(int loggerLevel, String loggerFilePath)
      Initializes a new instance of the ConsoleLogger class.
    • Constructor Detail

      • ConsoleLogger

        public ConsoleLogger()

        Initializes a new instance of the ConsoleLogger class.

      • ConsoleLogger

        public ConsoleLogger(int loggerLevel,
                     String loggerFilePath)

        Initializes a new instance of the ConsoleLogger class.

        Parameters:
        loggerLevel - The logger level.
        loggerFilePath - The logger file path.
    • Method Detail

      • isDebugEnabled

        public boolean isDebugEnabled()

        Gets or sets a value indicating whether this instance is debug enabled.

        Value: true if this instance is debug enabled; otherwise, false.
        Specified by:
        isDebugEnabled in interface ILogger
        Returns:
        the boolean
      • setDebugEnabled

        public void setDebugEnabled(boolean value)

        Gets or sets a value indicating whether this instance is debug enabled.

        Value: true if this instance is debug enabled; otherwise, false.
        Parameters:
        value - the value
      • isInfoEnabled

        public boolean isInfoEnabled()

        Gets or sets a value indicating whether this instance is information enabled.

        Value: true if this instance is information enabled; otherwise, false.
        Specified by:
        isInfoEnabled in interface ILogger
        Returns:
        the boolean
      • setInfoEnabled

        public void setInfoEnabled(boolean value)

        Gets or sets a value indicating whether this instance is information enabled.

        Value: true if this instance is information enabled; otherwise, false.
        Parameters:
        value - the value
      • isWarnEnabled

        public boolean isWarnEnabled()

        Gets or sets a value indicating whether this instance is warn enabled.

        Value: true if this instance is warn enabled; otherwise, false.
        Specified by:
        isWarnEnabled in interface ILogger
        Returns:
        the boolean
      • setWarnEnabled

        public void setWarnEnabled(boolean value)

        Gets or sets a value indicating whether this instance is warn enabled.

        Value: true if this instance is warn enabled; otherwise, false.
        Parameters:
        value - the value
      • isErrorEnabled

        public boolean isErrorEnabled()

        Gets or sets a value indicating whether this instance is error enabled.

        Value: true if this instance is error enabled; otherwise, false.
        Specified by:
        isErrorEnabled in interface ILogger
        Returns:
        the boolean
      • setErrorEnabled

        public void setErrorEnabled(boolean value)

        Gets or sets a value indicating whether this instance is error enabled.

        Value: true if this instance is error enabled; otherwise, false.
        Parameters:
        value - the value
      • isFatalEnabled

        public boolean isFatalEnabled()

        Gets or sets a value indicating whether this instance is fatal enabled.

        Value: true if this instance is fatal enabled; otherwise, false.
        Specified by:
        isFatalEnabled in interface ILogger
        Returns:
        the boolean
      • setFatalEnabled

        public void setFatalEnabled(boolean value)

        Gets or sets a value indicating whether this instance is fatal enabled.

        Value: true if this instance is fatal enabled; otherwise, false.
        Parameters:
        value - the value
      • dispose

        public void dispose()

        Releases unmanaged and - optionally - managed resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • debug

        public void debug(Object message)

        Debugs the specified message.

        Specified by:
        debug in interface ILogger
        Parameters:
        message - The message.
      • debug

        public void debug(Object message,
                 Exception exception)

        Debugs the specified message.

        Specified by:
        debug in interface ILogger
        Parameters:
        message - The message.
        exception - The exception.
      • debugFormat

        public void debugFormat(String format,
                       Object... args)

        Debugs the format.

        Specified by:
        debugFormat in interface ILogger
        Parameters:
        format - The format.
        args - The arguments.
      • debugFormat

        public void debugFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
                       String format,
                       Object... args)

        Debugs the format.

        Specified by:
        debugFormat in interface ILogger
        Parameters:
        provider - The provider.
        format - The format.
        args - The arguments.
      • info

        public void info(Object message)

        Informations the specified message.

        Specified by:
        info in interface ILogger
        Parameters:
        message - The message.
      • info

        public void info(Object message,
                Exception exception)

        Informations the specified message.

        Specified by:
        info in interface ILogger
        Parameters:
        message - The message.
        exception - The exception.
      • infoFormat

        public void infoFormat(String format,
                      Object... args)

        Informations the format.

        Specified by:
        infoFormat in interface ILogger
        Parameters:
        format - The format.
        args - The arguments.
      • infoFormat

        public void infoFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
                      String format,
                      Object... args)

        Informations the format.

        Specified by:
        infoFormat in interface ILogger
        Parameters:
        provider - The provider.
        format - The format.
        args - The arguments.
      • warn

        public void warn(Object message)

        Warns the specified message.

        Specified by:
        warn in interface ILogger
        Parameters:
        message - The message.
      • warn

        public void warn(Object message,
                Exception exception)

        Warns the specified message.

        Specified by:
        warn in interface ILogger
        Parameters:
        message - The message.
        exception - The exception.
      • warnFormat

        public void warnFormat(String format,
                      Object... args)

        Warns the format.

        Specified by:
        warnFormat in interface ILogger
        Parameters:
        format - The format.
        args - The arguments.
      • warnFormat

        public void warnFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
                      String format,
                      Object... args)

        Warns the format.

        Specified by:
        warnFormat in interface ILogger
        Parameters:
        provider - The provider.
        format - The format.
        args - The arguments.
      • error

        public void error(Object message)

        Errors the specified message.

        Specified by:
        error in interface ILogger
        Parameters:
        message - The message.
      • error

        public void error(Object message,
                 Exception exception)

        Errors the specified message.

        Specified by:
        error in interface ILogger
        Parameters:
        message - The message.
        exception - The exception.
      • errorFormat

        public void errorFormat(String format,
                       Object... args)

        Errors the format.

        Specified by:
        errorFormat in interface ILogger
        Parameters:
        format - The format.
        args - The arguments.
      • errorFormat

        public void errorFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
                       String format,
                       Object... args)

        Errors the format.

        Specified by:
        errorFormat in interface ILogger
        Parameters:
        provider - The provider.
        format - The format.
        args - The arguments.
      • fatal

        public void fatal(Object message)

        Fatals the specified message.

        Specified by:
        fatal in interface ILogger
        Parameters:
        message - The message.
      • fatal

        public void fatal(Object message,
                 Exception exception)

        Fatals the specified message.

        Specified by:
        fatal in interface ILogger
        Parameters:
        message - The message.
        exception - The exception.
      • fatalFormat

        public void fatalFormat(String format,
                       Object... args)

        Fatals the format.

        Specified by:
        fatalFormat in interface ILogger
        Parameters:
        format - The format.
        args - The arguments.
      • fatalFormat

        public void fatalFormat(com.groupdocs.foundation.utils.IFormatProvider provider,
                       String format,
                       Object... args)

        Fatals the format.

        Specified by:
        fatalFormat in interface ILogger
        Parameters:
        provider - The provider.
        format - The format.
        args - The arguments.