public class LoggingEvent
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
CODA_WARN
CODA_WARNING msg, 9.
|
static int |
DEBUG
DEBUG msg.
|
static int |
ERROR
ERROR msg, 9 - 12.
|
static int |
INFO
INFO msg.
|
static int |
RC_GUI_CONSOLE
RC GUI CONSOLE msg, 15.
|
static int |
SEVERE
SEVERE msg, 13 - 14.
|
static int |
WARN
WARNING msg, 5 - 8.
|
Constructor and Description |
---|
LoggingEvent(int level,
java.lang.String message,
java.lang.StackTraceElement location,
java.lang.Throwable throwable)
Constructor LoggingEvent creates a new LoggingEvent instance.
|
LoggingEvent(int level,
java.lang.String message,
java.lang.StackTraceElement location,
java.lang.Throwable throwable,
java.lang.Object data)
Constructor LoggingEvent creates a new LoggingEvent instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getData()
Method getData returns the data of this LoggingEvent object.
|
long |
getEventTime()
Method getEventTime returns the eventTime of this LoggingEvent object.
|
java.lang.String |
getFormatedData()
Method getFormatedData returns the formatedData of this LoggingEvent object.
|
java.lang.String |
getFormatedLevel()
Get the string associated with the format level of this event.
|
int |
getLevel()
Method getLevel returns the level of this LoggingEvent object.
|
java.lang.StackTraceElement |
getLocation()
Method getLocation returns the location of this LoggingEvent object.
|
java.lang.String |
getMessage()
Method getMessage returns the message of this LoggingEvent object.
|
java.lang.Throwable |
getThrowable()
Method getThrowable returns the throwable of this LoggingEvent object.
|
boolean |
hasData()
Method hasData ...
|
void |
setData(java.lang.Object data)
Method setData sets the data of this LoggingEvent object.
|
public static final int DEBUG
public static final int INFO
public static final int WARN
public static final int ERROR
public static final int CODA_WARN
public static final int SEVERE
public static final int RC_GUI_CONSOLE
public LoggingEvent(int level, java.lang.String message, java.lang.StackTraceElement location, java.lang.Throwable throwable)
level
- of type intmessage
- of type Stringlocation
- of type StackTraceElementthrowable
- of type Throwablepublic LoggingEvent(int level, java.lang.String message, java.lang.StackTraceElement location, java.lang.Throwable throwable, java.lang.Object data)
level
- of type intmessage
- of type Stringlocation
- of type StackTraceElementthrowable
- of type Throwabledata
- of type Objectpublic java.lang.Object getData()
public void setData(java.lang.Object data)
data
- the data of this LoggingEvent object.public boolean hasData()
public java.lang.String getFormatedData()
public long getEventTime()
public int getLevel()
public java.lang.StackTraceElement getLocation()
public java.lang.String getMessage()
public java.lang.Throwable getThrowable()
public java.lang.String getFormatedLevel()