public final class PreciseLogEntry extends LogEntry
Constructor | Description |
---|---|
PreciseLogEntry(Instant instant,
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 |
---|---|---|
Date |
getDate() |
Get the current date.
|
Instant |
getInstant() |
Get the current date as instant.
|
Timestamp |
getTimestamp() |
Get the current date as SQL timestamp.
|
getClassName, getContext, getException, getFilename, getLevel, getLineNumber, getMessage, getMethodName, getProcessId, getRenderedLogEntry, getThread
public PreciseLogEntry(Instant instant, String processId, Thread thread, Map<String,String> context, String className, String methodName, String filename, int lineNumber, Level level, String message, Throwable exception)
instant
- The current date with nanoseconds precisionprocessId
- 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 Timestamp getTimestamp()
LogEntry
getTimestamp
in class LogEntry
public Instant getInstant()
Copyright © 2019. All rights reserved.