public final class LogEntry
extends java.lang.Object
A writer can only depend on values that have been requested. All other values are may null
.
Constructor | Description |
---|---|
LogEntry(org.tinylog.runtime.Timestamp timestamp,
java.lang.Thread thread,
java.util.Map<java.lang.String,java.lang.String> context,
java.lang.String className,
java.lang.String methodName,
java.lang.String fileName,
int lineNumber,
java.lang.String tag,
org.tinylog.Level level,
java.lang.String message,
java.lang.Throwable exception) |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
getClassName() |
Gets the name of the class in which this log entry has been issued.
|
java.util.Map<java.lang.String,java.lang.String> |
getContext() |
Gets the thread context mapping as it was active while issuing this log entry.
|
java.lang.Throwable |
getException() |
Gets the catched exception or throwable associated with this log entry.
|
java.lang.String |
getFileName() |
Gets the name of the source file in which this log entry has been issued.
|
org.tinylog.Level |
getLevel() |
Gets the severity level of this log entry.
|
int |
getLineNumber() |
Gets the line number in source file where this log entry has been issued.
|
java.lang.String |
getMessage() |
Gets the text message of this log entry.
|
java.lang.String |
getMethodName() |
Gets the name of the method in which this log entry has been issued.
|
java.lang.String |
getTag() |
Gets the tag from logger if this log entry has been issued by a tagged logger.
|
java.lang.Thread |
getThread() |
Gets the thread that has issued this log entry.
|
org.tinylog.runtime.Timestamp |
getTimestamp() |
Gets the data and time when this log entry was issued.
|
public LogEntry(org.tinylog.runtime.Timestamp timestamp, java.lang.Thread thread, java.util.Map<java.lang.String,java.lang.String> context, java.lang.String className, java.lang.String methodName, java.lang.String fileName, int lineNumber, java.lang.String tag, org.tinylog.Level level, java.lang.String message, java.lang.Throwable exception)
timestamp
- Date and time of issuing this log entrythread
- Thread that has issued this log entrycontext
- Actual thread context mappingclassName
- Name of class in which this log entry has been issuedmethodName
- Name of method in which this log entry has been issuedfileName
- Name of source file in which this log entry has been issuedlineNumber
- Line number in source file where this log entry has been issuedtag
- Tag from logger if this log entry has been issued by a tagged loggerlevel
- Severity level of this log entrymessage
- Text message of this log entryexception
- Caught exception or throwable associated with this log entrypublic org.tinylog.runtime.Timestamp getTimestamp()
public java.lang.Thread getThread()
public java.util.Map<java.lang.String,java.lang.String> getContext()
public java.lang.String getClassName()
public java.lang.String getMethodName()
public java.lang.String getFileName()
public int getLineNumber()
public java.lang.String getTag()
public org.tinylog.Level getLevel()
public java.lang.String getMessage()
public java.lang.Throwable getException()
Copyright © 2018. All rights reserved.