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()
关闭SDK日志
|
static void |
enableAccessLog()
开启SDK access日志
|
static void |
enableLog()
开启SDK日志
|
static void |
setLogFileDir(String dir)
设置日志文件存放的目录
|
static void |
setLogFileRolloverCount(int count)
设置保留日志文件的个数
|
static void |
setLogFileSize(int fileSize)
设置每个日志文件的大小,单位:字节
|
static void |
setLogLevel(Level 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
- 日志级别public static void setLogFileRolloverCount(int count)
count
- 保留日志文件的个数public static void setLogFileSize(int fileSize)
fileSize
- 日志文件大小public static void setLogFileDir(String dir)
dir
- 日志文件存放的目录Copyright © 2021. All rights reserved.