Class LogManager


  • public class LogManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LogManager()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLogger​(Logger logger)  
      static LogManager getLogManager()  
      static boolean isRegisteredWithApache()
      Check to confirm the logger is registered with Apache library
      void log​(java.lang.Throwable e, boolean terminated)  
      void log​(Level level, java.lang.String clazzName, java.lang.Object msg, java.lang.Throwable t)
      Logs a message to the configured logging systems
      void setLoggers​(java.util.List<Logger> listeners)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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