|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectplay.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 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(String message,
Object... args)
Log with DEBUG level |
static void |
debug(Throwable e,
String message,
Object... args)
Log with DEBUG level |
static void |
error(String message,
Object... args)
Log with ERROR level |
static void |
error(Throwable e,
String message,
Object... args)
Log with ERROR level |
static void |
fatal(String message,
Object... args)
Log with FATAL level |
static void |
fatal(Throwable e,
String message,
Object... args)
Log with FATAL level |
static void |
info(String message,
Object... args)
Log with INFO level |
static void |
info(Throwable e,
String message,
Object... args)
Log with INFO level |
static void |
init()
Try to init stuff. |
static void |
setUp(String level)
Force logger to a new level. |
static void |
trace(String message,
Object... args)
Log with TRACE level |
static void |
warn(String message,
Object... args)
Log with WARN level |
static void |
warn(Throwable e,
String message,
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 Logger juli
| Constructor Detail |
|---|
public Logger()
| Method Detail |
|---|
public static void init()
public static void setUp(String level)
level - TRACE,DEBUG,INFO,WARN,ERROR,FATAL
public static void trace(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void debug(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void debug(Throwable e,
String message,
Object... args)
e - the exception to logmessage - The message patternargs - Pattern arguments
public static void info(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void info(Throwable e,
String message,
Object... args)
e - the exception to logmessage - The message patternargs - Pattern arguments
public static void warn(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void warn(Throwable e,
String message,
Object... args)
e - the exception to logmessage - The message patternargs - Pattern arguments
public static void error(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void error(Throwable e,
String message,
Object... args)
e - the exception to logmessage - The message patternargs - Pattern arguments
public static void fatal(String message,
Object... args)
message - The message patternargs - Pattern arguments
public static void fatal(Throwable e,
String message,
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 | |||||||||