Package loci.poi.util

Class CommonsLogger

java.lang.Object
loci.poi.util.POILogger
loci.poi.util.CommonsLogger

public class CommonsLogger 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.

Author:
Marc Johnson (mjohnson at apache dot org), Glen Stampoultzis (glens at apache.org), Nicola Ken Barozzi (nicolaken at apache.org)
  • Constructor Details

    • CommonsLogger

      public CommonsLogger()
  • Method Details

    • initialize

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

      public 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.
    • 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