public class IfsLogRecord extends LogRecord
Constructor and Description |
---|
IfsLogRecord(Level level,
String msg)
Constructor to create a basic log record.
|
IfsLogRecord(String loggerName,
Level level,
String msg,
Throwable thrown,
LogInfo logInfo)
Constructor to create a basic log record, with info and a throwable.
|
Modifier and Type | Method and Description |
---|---|
LogInfo |
getLogInfo()
Get the object that contains our extra data
.
|
String |
getSourceLineNumber()
Get the line number of the class that issued the logging call.
|
void |
setLogInfo(LogInfo logInfo)
Set the object that provids our extra log info.
|
void |
setSourceLineNumber(int lineNumber)
Set the line number in class that issued logging call
|
getLevel, getLoggerName, getMessage, getMillis, getParameters, getResourceBundle, getResourceBundleName, getSequenceNumber, getSourceClassName, getSourceMethodName, getThreadID, getThrown, setLevel, setLoggerName, setMessage, setMillis, setParameters, setResourceBundle, setResourceBundleName, setSequenceNumber, setSourceClassName, setSourceMethodName, setThreadID, setThrown
public IfsLogRecord(Level level, String msg)
level
- a Level object that determines the log level
of this requestmsg
- a String containing the message to logpublic IfsLogRecord(String loggerName, Level level, String msg, Throwable thrown, LogInfo logInfo)
loggerName
- a String containing the name of the loggerlevel
- a Level object that determines the log level
of this requestmsg
- a String containing the message to logthrown
- a Throwable to loglogInfo
- a object that implements LogInfo that contains
extra information to log.public LogInfo getLogInfo()
public void setLogInfo(LogInfo logInfo)
logInfo
- a LogInfo object, meaning it implement LogInfo interface.public void setSourceLineNumber(int lineNumber)
public String getSourceLineNumber()
Copyright © 2023. All rights reserved.