play
Class Logger.ALogger

java.lang.Object
  extended by play.Logger.ALogger
Enclosing class:
Logger

public static class Logger.ALogger
extends java.lang.Object

Typical logger interface


Constructor Summary
Logger.ALogger(play.api.Logger logger)
           
 
Method Summary
 void debug(java.lang.String message)
          Logs a message with the DEBUG level.
 void debug(java.lang.String message, java.lang.Object... args)
          Logs a message with the DEBUG level.
 void debug(java.lang.String message, java.lang.Throwable error)
          Logs a message with the DEBUG level, with the given error.
 void error(java.lang.String message)
          Log a message with the ERROR level.
 void error(java.lang.String message, java.lang.Object... args)
          Log a message with the ERROR level.
 void error(java.lang.String message, java.lang.Throwable error)
          Log a message with the ERROR level, with the given error.
 void info(java.lang.String message)
          Logs a message with the INFO level.
 void info(java.lang.String message, java.lang.Object... args)
          Logs a message with the INFO level.
 void info(java.lang.String message, java.lang.Throwable error)
          Logs a message with the INFO level, with the given error.
 boolean isDebugEnabled()
          Returns true if the logger instance has DEBUG level logging enabled.
 boolean isErrorEnabled()
          Returns true if the logger instance has ERROR level logging enabled.
 boolean isInfoEnabled()
          Returns true if the logger instance has INFO level logging enabled.
 boolean isTraceEnabled()
          Returns true if the logger instance has TRACE level logging enabled.
 boolean isWarnEnabled()
          Returns true if the logger instance has WARN level logging enabled.
 void trace(java.lang.String message)
          Logs a message with the TRACE level.
 void trace(java.lang.String message, java.lang.Object... args)
          Logs a message with the TRACE level.
 void trace(java.lang.String message, java.lang.Throwable error)
          Logs a message with the TRACE level, with the given error.
 org.slf4j.Logger underlying()
          Get the underlying SLF4J logger.
 void warn(java.lang.String message)
          Log a message with the WARN level.
 void warn(java.lang.String message, java.lang.Object... args)
          Log a message with the WARN level.
 void warn(java.lang.String message, java.lang.Throwable error)
          Log a message with the WARN level, with the given error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Logger.ALogger

public Logger.ALogger(play.api.Logger logger)
Method Detail

underlying

public org.slf4j.Logger underlying()
Get the underlying SLF4J logger.


isTraceEnabled

public boolean isTraceEnabled()
Returns true if the logger instance has TRACE level logging enabled.


isDebugEnabled

public boolean isDebugEnabled()
Returns true if the logger instance has DEBUG level logging enabled.


isInfoEnabled

public boolean isInfoEnabled()
Returns true if the logger instance has INFO level logging enabled.


isWarnEnabled

public boolean isWarnEnabled()
Returns true if the logger instance has WARN level logging enabled.


isErrorEnabled

public boolean isErrorEnabled()
Returns true if the logger instance has ERROR level logging enabled.


trace

public void trace(java.lang.String message)
Logs a message with the TRACE level.

Parameters:
message - message to log

trace

public void trace(java.lang.String message,
                  java.lang.Object... args)
Logs a message with the TRACE level.

Parameters:
message - message to log
args - The arguments to apply to the message string

trace

public void trace(java.lang.String message,
                  java.lang.Throwable error)
Logs a message with the TRACE level, with the given error.

Parameters:
message - message to log
error - associated exception

debug

public void debug(java.lang.String message)
Logs a message with the DEBUG level.

Parameters:
message - Message to log

debug

public void debug(java.lang.String message,
                  java.lang.Object... args)
Logs a message with the DEBUG level.

Parameters:
message - Message to log
args - The arguments to apply to the message string

debug

public void debug(java.lang.String message,
                  java.lang.Throwable error)
Logs a message with the DEBUG level, with the given error.

Parameters:
message - Message to log
error - associated exception

info

public void info(java.lang.String message)
Logs a message with the INFO level.

Parameters:
message - message to log

info

public void info(java.lang.String message,
                 java.lang.Object... args)
Logs a message with the INFO level.

Parameters:
message - message to log
args - The arguments to apply to the message string

info

public void info(java.lang.String message,
                 java.lang.Throwable error)
Logs a message with the INFO level, with the given error.

Parameters:
message - message to log
error - associated exception

warn

public void warn(java.lang.String message)
Log a message with the WARN level.

Parameters:
message - message to log

warn

public void warn(java.lang.String message,
                 java.lang.Object... args)
Log a message with the WARN level.

Parameters:
message - message to log
args - The arguments to apply to the message string

warn

public void warn(java.lang.String message,
                 java.lang.Throwable error)
Log a message with the WARN level, with the given error.

Parameters:
message - message to log
error - associated exception

error

public void error(java.lang.String message)
Log a message with the ERROR level.

Parameters:
message - message to log

error

public void error(java.lang.String message,
                  java.lang.Object... args)
Log a message with the ERROR level.

Parameters:
message - message to log
args - The arguments to apply to the message string

error

public void error(java.lang.String message,
                  java.lang.Throwable error)
Log a message with the ERROR level, with the given error.

Parameters:
message - message to log
error - associated exception