|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object play.Logger
public class Logger
Main logger of the application. Free to use from the aplication code.
Nested Class Summary | |
---|---|
static class |
Logger.JuliToLog4jHandler
juli handler that Redirect to log4j |
Field Summary | |
---|---|
static boolean |
forceJuli
Will force use of java.util.logging (default to try log4j first). |
static java.util.logging.Logger |
juli
When using java.util.logging. |
static org.apache.log4j.Logger |
log4j
The application logger (play). |
static boolean |
recordCaller
Will record and display the caller method. |
static boolean |
redirectJuli
Will redirect all log from java.util.logging to log4j. |
Constructor Summary | |
---|---|
Logger()
|
Method Summary | |
---|---|
static void |
debug(java.lang.String message,
java.lang.Object... args)
Log with DEBUG level |
static void |
debug(java.lang.Throwable e,
java.lang.String message,
java.lang.Object... args)
Log with DEBUG level |
static void |
error(java.lang.String message,
java.lang.Object... args)
Log with ERROR level |
static void |
error(java.lang.Throwable e,
java.lang.String message,
java.lang.Object... args)
Log with ERROR level |
static void |
fatal(java.lang.String message,
java.lang.Object... args)
Log with FATAL level |
static void |
fatal(java.lang.Throwable e,
java.lang.String message,
java.lang.Object... args)
Log with FATAL level |
static void |
info(java.lang.String message,
java.lang.Object... args)
Log with INFO level |
static void |
info(java.lang.Throwable e,
java.lang.String message,
java.lang.Object... args)
Log with INFO level |
static void |
init()
Try to init stuff. |
static void |
setUp(java.lang.String level)
Force logger to a new level. |
static void |
trace(java.lang.String message,
java.lang.Object... args)
Log with TRACE level |
static void |
warn(java.lang.String message,
java.lang.Object... args)
Log with WARN level |
static void |
warn(java.lang.Throwable e,
java.lang.String message,
java.lang.Object... args)
Log with WARN level |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean forceJuli
public static boolean redirectJuli
public static boolean recordCaller
public static org.apache.log4j.Logger log4j
public static java.util.logging.Logger juli
Constructor Detail |
---|
public Logger()
Method Detail |
---|
public static void init()
public static void setUp(java.lang.String level)
level
- TRACE,DEBUG,INFO,WARN,ERROR,FATALpublic static void trace(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void debug(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void debug(java.lang.Throwable e, java.lang.String message, java.lang.Object... args)
e
- the exception to logmessage
- The message patternargs
- Pattern argumentspublic static void info(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void info(java.lang.Throwable e, java.lang.String message, java.lang.Object... args)
e
- the exception to logmessage
- The message patternargs
- Pattern argumentspublic static void warn(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void warn(java.lang.Throwable e, java.lang.String message, java.lang.Object... args)
e
- the exception to logmessage
- The message patternargs
- Pattern argumentspublic static void error(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void error(java.lang.Throwable e, java.lang.String message, java.lang.Object... args)
e
- the exception to logmessage
- The message patternargs
- Pattern argumentspublic static void fatal(java.lang.String message, java.lang.Object... args)
message
- The message patternargs
- Pattern argumentspublic static void fatal(java.lang.Throwable e, java.lang.String message, java.lang.Object... args)
e
- the exception to logmessage
- The message patternargs
- Pattern arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |