public class LogConfigurator extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Level |
DEBUG |
static Level |
ERROR |
static Level |
INFO |
static Level |
OFF |
static Level |
TRACE |
static Level |
WARN |
| 构造器和说明 |
|---|
LogConfigurator() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static void |
disableAccessLog() |
protected static void |
disableLog()
Disable SDK logging.
|
static void |
enableAccessLog() |
static void |
enableLog()
Enable SDK logging.
|
static void |
setLogFileDir(String dir)
Set a directory for saving log files.
|
static void |
setLogFileRolloverCount(int count)
Set the number of retained log files.
|
static void |
setLogFileSize(int fileSize)
Set the log file size (in bytes).
|
static void |
setLogLevel(Level level)
Set the log level.
|
public static final Level OFF
public static final Level TRACE
public static final Level DEBUG
public static final Level INFO
public static final Level WARN
public static final Level ERROR
public static void enableLog()
protected static void disableLog()
public static void enableAccessLog()
protected static void disableAccessLog()
public static void setLogLevel(Level level)
level - Log levelpublic static void setLogFileRolloverCount(int count)
count - Number of retained log filespublic static void setLogFileSize(int fileSize)
fileSize - Log file sizepublic static void setLogFileDir(String dir)
dir - Directory for saving log filesCopyright © 2021. All rights reserved.