public class LogInfo extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_LOG_FORMAT |
Constructor and Description |
---|
LogInfo(String logName,
LogLevel level,
String hostName,
String threadName,
String threadId,
String callerInfo,
String logContent,
String stackInfo,
String createTime) |
Modifier and Type | Method and Description |
---|---|
String |
getCallerInfo() |
String |
getCreateTime() |
String |
getHostName() |
LogLevel |
getLevel() |
String |
getLogContent() |
String |
getLogName() |
String |
getStackInfo() |
String |
getThreadId() |
String |
getThreadName() |
void |
setCallerInfo(String callerInfo) |
void |
setCreateTime(String createTime) |
void |
setHostName(String hostName) |
void |
setLevel(LogLevel level) |
void |
setLogContent(String logContent) |
void |
setLogName(String logName) |
void |
setStackInfo(String stackInfo) |
void |
setThreadId(String threadId) |
void |
setThreadName(String threadName) |
String |
toString() |
String |
toString(String logFormat,
boolean padded)
日志输出
|
public static final String DEFAULT_LOG_FORMAT
public String getLogName()
public void setLogName(String logName)
public LogLevel getLevel()
public void setLevel(LogLevel level)
public String getHostName()
public void setHostName(String hostName)
public String getThreadName()
public void setThreadName(String threadName)
public String getThreadId()
public void setThreadId(String threadId)
public String getCallerInfo()
public void setCallerInfo(String callerInfo)
public String getLogContent()
public void setLogContent(String logContent)
public String getStackInfo()
public void setStackInfo(String stackInfo)
public String getCreateTime()
public void setCreateTime(String createTime)
Copyright © 2022. All rights reserved.