Package play
Class Logger.ALogger
java.lang.Object
play.Logger.ALogger
- Enclosing class:
- Logger
Typical logger interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLogs a message with the DEBUG level.voidLogs a message with the DEBUG level.voidLogs a message with the DEBUG level, with the given error.voidLog a message with the DEBUG level.voidLog a message with the DEBUG level.voidLogs a message with the DEBUG level.voidLogs a message with the DEBUG level.voidLogs a message with the DEBUG level, with the given error.voidLog a message with the ERROR level.voidLog a message with the ERROR level.voidLog a message with the ERROR level, with the given error.voidLog a message with the ERROR level.voidLog a message with the ERROR level.voidLog a message with the ERROR level.voidLog a message with the ERROR level.voidLog a message with the ERROR level, with the given error.voidLogs a message with the INFO level.voidLogs a message with the INFO level.voidLogs a message with the INFO level, with the given error.voidLog a message with the INFO level.voidLog a message with the INFO level.voidLogs a message with the INFO level.voidLogs a message with the INFO level.voidLogs a message with the INFO level, with the given error.booleanReturnstrueif the logger instance has DEBUG level logging enabled.booleanisDebugEnabled(org.slf4j.Marker marker) Similar toisDebugEnabled()method except that the marker data is also taken into account.booleanReturnstrueif the logger instance has ERROR level logging enabled.booleanisErrorEnabled(org.slf4j.Marker marker) Similar toisErrorEnabled()method except that the marker data is also taken into consideration.booleanReturnstrueif the logger instance has INFO level logging enabled.booleanisInfoEnabled(org.slf4j.Marker marker) Similar toisInfoEnabled()method except that the marker data is also taken into consideration.booleanReturnstrueif the logger instance has TRACE level logging enabled.booleanisTraceEnabled(org.slf4j.Marker marker) Similar toisTraceEnabled()method except that the marker data is also taken into account.booleanReturnstrueif the logger instance has WARN level logging enabled.booleanisWarnEnabled(org.slf4j.Marker marker) Similar toisWarnEnabled()method except that the marker data is also taken into consideration.voidLogs a message with the TRACE level.voidLogs a message with the TRACE level.voidLogs a message with the TRACE level, with the given error.voidLog a message with the TRACE level.voidLog a message with the TRACE level.voidLogs a message with the TRACE level.voidThis method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.voidLogs a message with the TRACE level, with the given error.org.slf4j.LoggerGet the underlying SLF4J logger.voidLog a message with the WARN level.voidLog a message with the WARN level.voidLog a message with the WARN level, with the given error.voidLog a message with the WARN level.voidLog a message with the WARN level.voidLog a message with the WARN level.voidLog a message with the WARN level.voidLog a message with the WARN level, with the given error.
-
Constructor Details
-
ALogger
public ALogger(play.api.Logger logger)
-
-
Method Details
-
underlying
public org.slf4j.Logger underlying()Get the underlying SLF4J logger.- Returns:
- the SLF4J logger
-
isTraceEnabled
public boolean isTraceEnabled()Returnstrueif the logger instance has TRACE level logging enabled.- Returns:
trueif the logger instance has TRACE level logging enabled.
-
isTraceEnabled
public boolean isTraceEnabled(org.slf4j.Marker marker) Similar toisTraceEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the TRACE level, false otherwise.
-
isDebugEnabled
public boolean isDebugEnabled()Returnstrueif the logger instance has DEBUG level logging enabled.- Returns:
trueif the logger instance has DEBUG level logging enabled.
-
isDebugEnabled
public boolean isDebugEnabled(org.slf4j.Marker marker) Similar toisDebugEnabled()method except that the marker data is also taken into account.- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the DEBUG level, false otherwise.
-
isInfoEnabled
public boolean isInfoEnabled()Returnstrueif the logger instance has INFO level logging enabled.- Returns:
trueif the logger instance has INFO level logging enabled.
-
isInfoEnabled
public boolean isInfoEnabled(org.slf4j.Marker marker) Similar toisInfoEnabled()method except that the marker data is also taken into consideration.- Parameters:
marker- The marker data to take into consideration- Returns:
- true if this logger is warn enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()Returnstrueif the logger instance has WARN level logging enabled.- Returns:
trueif the logger instance has WARN level logging enabled.
-
isWarnEnabled
public boolean isWarnEnabled(org.slf4j.Marker marker) Similar toisWarnEnabled()method except that the marker data is also taken into consideration.- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the WARN level, false otherwise.
-
isErrorEnabled
public boolean isErrorEnabled()Returnstrueif the logger instance has ERROR level logging enabled.- Returns:
trueif the logger instance has ERROR level logging enabled.
-
isErrorEnabled
public boolean isErrorEnabled(org.slf4j.Marker marker) Similar toisErrorEnabled()method except that the marker data is also taken into consideration.- Parameters:
marker- The marker data to take into consideration- Returns:
- True if this Logger is enabled for the ERROR level, false otherwise.
-
trace
Logs a message with the TRACE level.- Parameters:
message- message to log
-
trace
Log a message with the TRACE level.- Parameters:
msgSupplier-Supplierthat contains message to log
-
trace
Logs a message with the TRACE level.- Parameters:
marker- the marker data specific to this log statementmessage- message to log
-
trace
Logs a message with the TRACE level.- Parameters:
message- message to logargs- The arguments to apply to the message string
-
trace
Log a message with the TRACE level.- Parameters:
message- message to logargs- Suppliers that contain arguments to apply to the message String
-
trace
This method is similar totrace(String, Object...)method except that the marker data is also taken into consideration.- Parameters:
marker- the marker data specific to this log statementmessage- message to logargs- The arguments to apply to the message string
-
trace
Logs a message with the TRACE level, with the given error.- Parameters:
message- message to logerror- associated exception
-
trace
Logs a message with the TRACE level, with the given error.- Parameters:
marker- the marker data specific to this log statementmessage- message to logerror- associated exception
-
debug
Logs a message with the DEBUG level.- Parameters:
message- Message to log
-
debug
Log a message with the DEBUG level.- Parameters:
msgSupplier-Supplierthat contains message to log
-
debug
Logs a message with the DEBUG level.- Parameters:
marker- the marker data specific to this log statementmessage- Message to log
-
debug
Logs a message with the DEBUG level.- Parameters:
message- Message to logargs- The arguments to apply to the message string
-
debug
Log a message with the DEBUG level.- Parameters:
message- message to logargs- Suppliers that contain arguments to apply to the message String
-
debug
Logs a message with the DEBUG level.- Parameters:
marker- the marker data specific to this log statementmessage- Message to logargs- The arguments to apply to the message string
-
debug
Logs a message with the DEBUG level, with the given error.- Parameters:
message- Message to logerror- associated exception
-
debug
Logs a message with the DEBUG level, with the given error.- Parameters:
marker- the marker data specific to this log statementmessage- Message to logerror- associated exception
-
info
Logs a message with the INFO level.- Parameters:
message- message to log
-
info
Log a message with the INFO level.- Parameters:
msgSupplier-Supplierthat contains message to log
-
info
Logs a message with the INFO level.- Parameters:
marker- the marker data specific to this log statementmessage- message to log
-
info
Logs a message with the INFO level.- Parameters:
message- message to logargs- The arguments to apply to the message string
-
info
Log a message with the INFO level.- Parameters:
message- message to logargs- Suppliers that contain arguments to apply to the message String
-
info
Logs a message with the INFO level.- Parameters:
marker- the marker data specific to this log statementmessage- message to logargs- The arguments to apply to the message string
-
info
Logs a message with the INFO level, with the given error.- Parameters:
message- message to logerror- associated exception
-
info
Logs a message with the INFO level, with the given error.- Parameters:
marker- the marker data specific to this log statementmessage- message to logerror- associated exception
-
warn
Log a message with the WARN level.- Parameters:
message- message to log
-
warn
Log a message with the WARN level.- Parameters:
msgSupplier-Supplierthat contains message to log
-
warn
Log a message with the WARN level.- Parameters:
marker- the marker data specific to this log statementmessage- message to log
-
warn
Log a message with the WARN level.- Parameters:
message- message to logargs- The arguments to apply to the message string
-
warn
Log a message with the WARN level.- Parameters:
message- message to logargs- Suppliers that contain arguments to apply to the message String
-
warn
Log a message with the WARN level.- Parameters:
marker- the marker data specific to this log statementmessage- message to logargs- The arguments to apply to the message string
-
warn
Log a message with the WARN level, with the given error.- Parameters:
message- message to logerror- associated exception
-
warn
Log a message with the WARN level, with the given error.- Parameters:
marker- the marker data specific to this log statementmessage- message to logerror- associated exception
-
error
Log a message with the ERROR level.- Parameters:
message- message to log
-
error
Log a message with the ERROR level.- Parameters:
msgSupplier-Supplierthat contains message to log
-
error
Log a message with the ERROR level.- Parameters:
marker- the marker data specific to this log statementmessage- message to log
-
error
Log a message with the ERROR level.- Parameters:
message- message to logargs- The arguments to apply to the message string
-
error
Log a message with the ERROR level.- Parameters:
message- message to logargs- Suppliers that contain arguments to apply to the message String
-
error
Log a message with the ERROR level.- Parameters:
marker- the marker data specific to this log statementmessage- message to logargs- The arguments to apply to the message string
-
error
Log a message with the ERROR level, with the given error.- Parameters:
message- message to logerror- associated exception
-
error
Log a message with the ERROR level, with the given error.- Parameters:
marker- the marker data specific to this log statementmessage- message to logerror- associated exception
-