public class LogConfigurator extends Object
Modifier and Type | Field and Description |
---|---|
static Level |
DEBUG |
static Level |
ERROR |
static Level |
INFO |
static Level |
OFF |
static Level |
TRACE |
static Level |
WARN |
Constructor and Description |
---|
LogConfigurator() |
Modifier and Type | Method and Description |
---|---|
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 © 2019. All rights reserved.