public class LogEvent extends Object
| Modifier and Type | Field and Description |
|---|---|
static short |
ALL |
static short |
DEBUG |
static short |
ERROR |
static short |
FATAL |
static short |
INFO |
short |
level
Provides access to the level for this log event.
|
Logger |
logger
Logger instance that raised the log event.
|
String |
message
Provides access to the message that was logged.
|
static short |
NONE |
Throwable |
throwable
Related exception, if applicable.
|
static short |
WARN |
public static final short NONE
public static final short FATAL
public static final short ERROR
public static final short WARN
public static final short INFO
public static final short DEBUG
public static final short ALL
public short level
LogEvent.DEBUG designates informational
level messages that are fine grained and most helpful when
debugging an application.LogEvent.INFO designates informational messages
that highlight the progress of the application at
coarse-grained level.LogEvent.WARN designates events that could be
harmful to the application operation.LogEvent.ERROR designates error events that might
still allow the application to continue running.LogEvent.FATAL designates events that are very
harmful and will eventually lead to application failure.public String message
public Logger logger
public Throwable throwable
public static String getLevelString(short value)
value - the level a string is desired for.Copyright © 2015 The Apache Software Foundation. All rights reserved.