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 Detail

      • ConsoleLogger

        public ConsoleLogger()

        Initializes a new instance of the ConsoleLogger class.

      • ConsoleLogger

        public ConsoleLogger(int loggingLevel)
      • ConsoleLogger

        public ConsoleLogger(int loggingLevel,
                     String loggerFilePath)
    • Method Detail

      • 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(com.aspose.ms.System.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.
      • debugFormat

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

        Debugs the format.

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

        public void dispose()

        Releases unmanaged and - optionally - managed resources.

        Specified by:
        dispose in interface com.aspose.ms.System.IDisposable
      • 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(com.aspose.ms.System.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.
      • errorFormat

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

        Errors the format.

        Specified by:
        errorFormat in interface ILogger
        Parameters:
        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(com.aspose.ms.System.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.
      • fatalFormat

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

        Fatals the format.

        Specified by:
        fatalFormat in interface ILogger
        Parameters:
        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(com.aspose.ms.System.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.
      • infoFormat

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

        Informations the format.

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

        public void setDebugEnabled(boolean value)
      • setErrorEnabled

        public void setErrorEnabled(boolean value)
      • setFatalEnabled

        public void setFatalEnabled(boolean value)
      • setInfoEnabled

        public void setInfoEnabled(boolean value)
      • setWarnEnabled

        public void setWarnEnabled(boolean value)
      • 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(com.aspose.ms.System.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.
      • warnFormat

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

        Warns the format.

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