com.groupdocs.merger.logging

Class ConsoleLogger

  • All Implemented Interfaces:
    ILogger


    public class ConsoleLogger
    extends Object
    implements ILogger

    Writes log messages to the console.

    • Constructor Detail

      • ConsoleLogger

        public ConsoleLogger()
    • Method Detail

      • error

        public final void error(String message,
                 Exception exception)

        Writes error message to the console. Error log messages provides information about unrecoverable events in application flow.

        Specified by:
        error in interface ILogger
        Parameters:
        message - The error message.
        exception - The exception.
        Throws:
        NullPointerException - Thrown when message is null.
        NullPointerException - Thrown when exception is null.
      • trace

        public final void trace(String message)

        Writes trace message to the console. Trace log messages provides generally useful information about application flow.

        Specified by:
        trace in interface ILogger
        Parameters:
        message - The trace message.
        Throws:
        NullPointerException - Thrown when message is null.
      • warning

        public final void warning(String message)

        Writes warning message to the console. Warning log messages provides information about unexpected and recoverable event in application flow.

        Specified by:
        warning in interface ILogger
        Parameters:
        message - The warning message.
        Throws:
        NullPointerException - Thrown when message is null.