com.groupdocs.viewer.logging

Class ViewerLogger



  • public class ViewerLogger
    extends Object

    Implements logging messages to integrated or user defined logger.

    • Constructor Detail

      • ViewerLogger

        public ViewerLogger()
    • Method Detail

      • debug

        public static void debug(String message,
                 Object... arguments)

        Debug message

        Parameters:
        message - The debug message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • debug

        public static void debug(Throwable throwable,
                 String message,
                 Object... arguments)

        Debug message

        Parameters:
        throwable - The exception message
        message - The debug message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • error

        public static void error(String message,
                 Object... arguments)

        Error message

        Parameters:
        message - The error message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • error

        public static void error(Throwable throwable,
                 String message,
                 Object... arguments)

        Error message

        Parameters:
        throwable - The exception message
        message - The error message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • isDebugEnabled

        public static boolean isDebugEnabled()
        Checks is debug logging enabled
        Returns:
        true if enabled
      • isErrorEnabled

        public static boolean isErrorEnabled()
        Checks is error logging enabled
        Returns:
        true if enabled
      • isTraceEnabled

        public static boolean isTraceEnabled()
        Checks is trace logging enabled
        Returns:
        true if enabled
      • isWarningEnabled

        public static boolean isWarningEnabled()
        Checks is warning logging enabled
        Returns:
        true if enabled
      • setLogger

        public static void setLogger(com.groupdocs.foundation.logging.ILogger logger)

        Sets the logger.

        Parameters:
        logger - The input logger.
      • trace

        public static void trace(String message,
                 Object... arguments)

        Trace message

        Parameters:
        message - The trace message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • trace

        public static void trace(Throwable throwable,
                 String message,
                 Object... arguments)

        Trace message

        Parameters:
        throwable - The exception message
        message - The trace message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • warning

        public static void warning(String message,
                   Object... arguments)

        Warning message

        Parameters:
        message - The warning message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing
      • warning

        public static void warning(Throwable throwable,
                   String message,
                   Object... arguments)

        Warning message

        Parameters:
        throwable - The exception message
        message - The warning message, can contains {} to be replaced with arguments
        arguments - The arguments, replaces {} in message in order of passing