Class SystemOutLogger


  • public class SystemOutLogger
    extends POILogger
    A logger class that strives to make it as easy as possible for developers to write log calls, while simultaneously making those calls as cheap as possible by performing lazy evaluation of the log message.
    • Constructor Summary

      Constructors 
      Constructor Description
      SystemOutLogger()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void _log​(int level, java.lang.Object obj1)
      Log a message
      protected void _log​(int level, java.lang.Object obj1, java.lang.Throwable exception)
      Log a message
      boolean check​(int level)
      Check if a logger is enabled to log at the specified level
      void initialize​(java.lang.String cat)  
      • Methods inherited from class org.apache.poi.util.POILogger

        log
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemOutLogger

        public SystemOutLogger()
    • Method Detail

      • initialize

        public void initialize​(java.lang.String cat)
        Specified by:
        initialize in class POILogger
      • _log

        protected void _log​(int level,
                            java.lang.Object obj1)
        Log a message
        Specified by:
        _log in class POILogger
        Parameters:
        level - One of DEBUG, INFO, WARN, ERROR, FATAL
        obj1 - The object to log.
      • _log

        protected void _log​(int level,
                            java.lang.Object obj1,
                            java.lang.Throwable exception)
        Log a message
        Specified by:
        _log in class POILogger
        Parameters:
        level - One of DEBUG, INFO, WARN, ERROR, FATAL
        obj1 - The object to log. This is converted to a string.
        exception - An exception to be logged