Class LogManager


  • public class LogManager
    extends java.lang.Object
    • Field Detail

      • DEFAULT_LOGGER

        private static final ConsoleLogger DEFAULT_LOGGER
        A default logger. It used when no loggers are configured in config.xml
      • registeredWithApache

        private static boolean registeredWithApache
      • requestors

        private final java.util.List<java.lang.String> requestors
      • loggers

        private java.util.List<Logger> loggers
    • Constructor Detail

      • LogManager

        public LogManager()
    • Method Detail

      • getLogManager

        public static LogManager getLogManager()
      • isRegisteredWithApache

        public static boolean isRegisteredWithApache()
        Check to confirm the logger is registered with Apache library
        Returns:
        the registeredWithApache
      • setLoggers

        public void setLoggers​(java.util.List<Logger> listeners)
      • addLogger

        public void addLogger​(Logger logger)
      • log

        public void log​(@Nonnull
                        java.lang.Throwable e,
                        boolean terminated)
      • log

        public void log​(Level level,
                        java.lang.String clazzName,
                        @Nonnull
                        java.lang.Object msg,
                        java.lang.Throwable t)
        Logs a message to the configured logging systems
        Parameters:
        level - - current log level
        clazzName - - the name of the class that the log was generated in
        msg - - the logging object to create the message from
      • addRequestors

        void addRequestors​(java.lang.String inName)
        Parameters:
        inName -