Class SystemOutLogger

java.lang.Object
org.apache.poi.util.POILogger
org.apache.poi.util.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 Details

    • SystemOutLogger

      public SystemOutLogger()
  • Method Details

    • initialize

      public void initialize(String cat)
      Specified by:
      initialize in class POILogger
    • _log

      protected void _log(int level, 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, Object obj1, 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
    • check

      public boolean check(int level)
      Check if a logger is enabled to log at the specified level
      Specified by:
      check in class POILogger
      Parameters:
      level - One of DEBUG, INFO, WARN, ERROR, FATAL
      See Also: