com.groupdocs.viewer.logging

Class FileLogger

  • All Implemented Interfaces:
    com.groupdocs.foundation.logging.ILogger


    public class FileLogger
    extends Object
    implements com.groupdocs.foundation.logging.ILogger
    Writes log messages to the file.
    • Constructor Detail

      • FileLogger

        public FileLogger(String fileName)
        Create logger to file.
        Parameters:
        fileName - Full file name with path
      • FileLogger

        public FileLogger(String fileName,
                  boolean isTraceEnabled,
                  boolean isDebugEnabled,
                  boolean isWarningEnabled,
                  boolean isErrorEnabled)
        Create logger to file.
    • Method Detail

      • debug

        public void debug(String message,
                 Object... arguments)
        Writes a debug message to the console. Debug log messages provide information about different processes in application flow.
        Specified by:
        debug in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        arguments - The arguments, replaces {} in message in order of passing
        message - The debug message.
      • debug

        public void debug(Throwable throwable,
                 String message,
                 Object... arguments)
        Writes a debug message to the console. Debug log messages provide information about different processes in application flow.
        Specified by:
        debug in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        arguments - The arguments, replaces {} in message in order of passing
        message - The debug message.
        throwable - The exception
      • error

        public void error(String message,
                 Object... arguments)
        Writes an error message to the console. Error log messages provide information about unrecoverable events in application flow.
        Specified by:
        error in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        message - The error message
        arguments - The arguments, replaces {} in message in order of passing
      • error

        public void error(Throwable throwable,
                 String message,
                 Object... arguments)
        Writes an error message to the console. Error log messages provide information about unrecoverable events in application flow.
        Specified by:
        error in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        message - The error message
        throwable - The exception
        arguments - The arguments, replaces {} in message in order of passing
      • isDebugEnabled

        public boolean isDebugEnabled()
        Description copied from interface: com.groupdocs.foundation.logging.ILogger
        Checks is debug logging enabled
        Specified by:
        isDebugEnabled in interface com.groupdocs.foundation.logging.ILogger
        Returns:
        true if enabled
      • isErrorEnabled

        public boolean isErrorEnabled()
        Description copied from interface: com.groupdocs.foundation.logging.ILogger
        Checks is error logging enabled
        Specified by:
        isErrorEnabled in interface com.groupdocs.foundation.logging.ILogger
        Returns:
        true if enabled
      • isTraceEnabled

        public boolean isTraceEnabled()
        Description copied from interface: com.groupdocs.foundation.logging.ILogger
        Checks is trace logging enabled
        Specified by:
        isTraceEnabled in interface com.groupdocs.foundation.logging.ILogger
        Returns:
        true if enabled
      • isWarningEnabled

        public boolean isWarningEnabled()
        Description copied from interface: com.groupdocs.foundation.logging.ILogger
        Checks is warning logging enabled
        Specified by:
        isWarningEnabled in interface com.groupdocs.foundation.logging.ILogger
        Returns:
        true if enabled
      • trace

        public void trace(String message,
                 Object... arguments)
        Writes a trace message to the console. Trace log messages provide generally useful information about application flow.
        Specified by:
        trace in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        message - The trace message.
        arguments - The arguments, replaces {} in message in order of passing
      • trace

        public void trace(Throwable throwable,
                 String message,
                 Object... arguments)
        Writes a trace message to the console. Trace log messages provide generally useful information about application flow.
        Specified by:
        trace in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        throwable - The exception
        message - The trace message.
        arguments - The arguments, replaces {} in message in order of passing
      • warning

        public void warning(String message,
                   Object... arguments)
        Writes a warning message to the console. Warning log messages provide information about unexpected and recoverable events in application flow.
        Specified by:
        warning in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        message - The warning message.
        arguments - The arguments, replaces {} in message in order of passing
      • warning

        public void warning(Throwable throwable,
                   String message,
                   Object... arguments)
        Writes a warning message to the console. Warning log messages provide information about unexpected and recoverable events in application flow.
        Specified by:
        warning in interface com.groupdocs.foundation.logging.ILogger
        Parameters:
        arguments - The arguments, replaces {} in message in order of passing
        message - The warning message.
        throwable - The exception