public final class LogEntry extends Object
A writer can only depend on values that have been requested. All other values are may null
.
Constructor and Description |
---|
LogEntry(org.tinylog.runtime.Timestamp timestamp,
Thread thread,
Map<String,String> context,
String className,
String methodName,
String fileName,
int lineNumber,
String tag,
org.tinylog.Level level,
String message,
Throwable exception) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName()
Gets the name of the class in which this log entry has been issued.
|
Map<String,String> |
getContext()
Gets the thread context mapping as it was active while issuing this log entry.
|
Throwable |
getException()
Gets the caught exception or throwable associated with this log entry.
|
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.
|
String |
getMessage()
Gets the text message of this log entry.
|
String |
getMethodName()
Gets the name of the method in which this log entry has been issued.
|
String |
getTag()
Gets the tag from logger if this log entry has been issued by a tagged logger.
|
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, Thread thread, Map<String,String> context, String className, String methodName, String fileName, int lineNumber, String tag, org.tinylog.Level level, String message, 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 Thread getThread()
public Map<String,String> getContext()
public String getClassName()
public String getMethodName()
public String getFileName()
public int getLineNumber()
public String getTag()
public org.tinylog.Level getLevel()
public String getMessage()
public Throwable getException()
Copyright © 2020. All rights reserved.