Class Log4j

java.lang.Object
org.debugtrace.logger.Log4j
All Implemented Interfaces:
Logger

public class Log4j extends Object implements Logger
A logger using Log4J.
Since:
1.0.0
Author:
Masato Kokubo
  • Constructor Details

    • Log4j

      public Log4j()
      Construct a Log4j.
  • Method Details

    • isEnabled

      public boolean isEnabled()
      Returns whether logging is enabled.
      Specified by:
      isEnabled in interface Logger
      Returns:
      true if logging is enabled; false otherwise
    • log

      public void log(String message)
      Output the message to the log.
      Specified by:
      log in interface Logger
      Parameters:
      message - a log message
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Since:
      3.4.0