LegacyLogEntry
, PreciseLogEntry
, UndatedLogEntry
public abstract class LogEntry extends Object
Writer.write(LogEntry)
.Constructor | Description |
---|---|
LogEntry(String processId,
Thread thread,
Map<String,String> context,
String className,
String methodName,
String filename,
int lineNumber,
Level level,
String message,
Throwable exception) |
Modifier and Type | Method | Description |
---|---|---|
String |
getClassName() |
Get the fully qualified class name of the caller.
|
Map<String,String> |
getContext() |
Get the thread-based mapped diagnostic context.
|
abstract Date |
getDate() |
Get the current date.
|
Throwable |
getException() |
Get the exception of the log entry.
|
String |
getFilename() |
Get the source filename of the caller.
|
Level |
getLevel() |
Get the severity level.
|
int |
getLineNumber() |
Get the line number of calling.
|
String |
getMessage() |
Get the message of the logging event.
|
String |
getMethodName() |
Get the method name of the caller.
|
String |
getProcessId() |
Get the ID of the process (pid).
|
String |
getRenderedLogEntry() |
Get the rendered log entry.
|
Thread |
getThread() |
Get the current thread.
|
abstract Timestamp |
getTimestamp() |
Get the current date as SQL timestamp.
|
public LogEntry(String processId, Thread thread, Map<String,String> context, String className, String methodName, String filename, int lineNumber, Level level, String message, Throwable exception)
processId
- The ID of the process (pid)thread
- The current threadcontext
- Thread-based mapped diagnostic contextclassName
- The fully qualified class namemethodName
- The method namefilename
- The source filenamelineNumber
- The line numberlevel
- The severity levelmessage
- The message of the logging eventexception
- The exception of the log entrypublic abstract Date getDate()
public abstract Timestamp getTimestamp()
public final String getProcessId()
public final Thread getThread()
public final Map<String,String> getContext()
public final String getClassName()
public final String getMethodName()
public final String getFilename()
public final int getLineNumber()
public final Level getLevel()
public final String getMessage()
public final Throwable getException()
public final String getRenderedLogEntry()
Copyright © 2019. All rights reserved.