Class LogEntry
- java.lang.Object
-
- de.dytanic.cloudnet.common.logging.LogEntry
-
public class LogEntry extends java.lang.ObjectRepresents a full log record from the logger. Important for the most loggers are the following information- timestamp: for the time, from the log entry
- messages: all messages in this record
- thread: the Thread in that the record was created
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>clazzThe class in that the logger should print if the class is defined The class can be nullprotected LogLevellogLevelThe LogLevel of this LogEntry.protected java.lang.String[]messagesAll messages, which should print from the logger as array of messages to execute more message as one in a entryprotected java.lang.ThreadthreadThe Thread instance in that the LogEntry was createdprotected java.lang.ThrowablethrowableAn optional Throwable instance, for error messages that are should interesting for the log handlersprotected longtimeStampThe timestamp in that the log record was create in millis from since 01.01.1970 00:00:00
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>getClazz()LogLevelgetLogLevel()java.lang.String[]getMessages()java.lang.ThreadgetThread()java.lang.ThrowablegetThrowable()longgetTimeStamp()
-
-
-
Field Detail
-
timeStamp
protected final long timeStamp
The timestamp in that the log record was create in millis from since 01.01.1970 00:00:00
-
clazz
protected final java.lang.Class<?> clazz
The class in that the logger should print if the class is defined The class can be null
-
messages
protected final java.lang.String[] messages
All messages, which should print from the logger as array of messages to execute more message as one in a entryIt's not allowed to set the array or the entries of that to null. The log entry will be blocked
-
logLevel
protected final LogLevel logLevel
The LogLevel of this LogEntry. The LogLevel must be not null, but it can be custom created
-
throwable
protected final java.lang.Throwable throwable
An optional Throwable instance, for error messages that are should interesting for the log handlers
-
thread
protected final java.lang.Thread thread
The Thread instance in that the LogEntry was created
-
-
Constructor Detail
-
LogEntry
public LogEntry(long timeStamp, java.lang.Class<?> clazz, java.lang.String[] messages, LogLevel logLevel, java.lang.Throwable throwable, java.lang.Thread thread)
-
-
Method Detail
-
getTimeStamp
public long getTimeStamp()
-
getClazz
public java.lang.Class<?> getClazz()
-
getMessages
public java.lang.String[] getMessages()
-
getLogLevel
public LogLevel getLogLevel()
-
getThrowable
public java.lang.Throwable getThrowable()
-
getThread
public java.lang.Thread getThread()
-
-