public class Logger extends Object
Constructor and Description |
---|
Logger() |
Modifier and Type | Method and Description |
---|---|
static void |
custom(String logLevel,
Object msg) |
static void |
custom(String logLevel,
Object msg,
Throwable e) |
static void |
custom(String logLevel,
Throwable e) |
static void |
customf(String logLevel,
String msg,
Object... args) |
static void |
customf(String logLevel,
String msg,
Throwable e,
Object... args) |
static void |
debug(Object msg) |
static void |
debugf(String msg,
Object... args) |
static void |
error(Object msg) |
static void |
error(Object msg,
Throwable e) |
static void |
error(Throwable e) |
static void |
errorf(String msg,
Object... args) |
static void |
errorf(String msg,
Throwable e,
Object... args) |
static void |
fatal(Object msg) |
static void |
fatal(Object msg,
Throwable e) |
static void |
fatal(Throwable e) |
static void |
fatalf(String msg,
Object... args) |
static void |
fatalf(String msg,
Throwable e,
Object... args) |
static void |
fremawork(Object msg) |
static void |
fremaworkf(String msg,
Object... args) |
static void |
info(Object msg) |
static void |
infof(String msg,
Object... args) |
static boolean |
isEnable()
日志输出状态
|
static boolean |
isLogLevel(String logLevel)
判断是否包含指定的日志级别
|
static void |
setEnable(boolean enable)
设置日志输出状态
|
static void |
simple(Object msg) |
static void |
simplef(String msg,
Object... args) |
static void |
sql(Object msg) |
static void |
sqlf(String msg,
Object... args) |
static void |
stopLoggerThread() |
static void |
warn(Object msg) |
static void |
warn(Object msg,
Throwable e) |
static void |
warn(Throwable e) |
static void |
warnf(String msg,
Object... args) |
static void |
warnf(String msg,
Throwable e,
Object... args) |
public static boolean isEnable()
public static void setEnable(boolean enable)
enable
- true:输出日志,false 不输出任何日志public static void stopLoggerThread()
public static boolean isLogLevel(String logLevel)
logLevel
- 日志级别public static void info(Object msg)
public static void fremawork(Object msg)
public static void sql(Object msg)
public static void debug(Object msg)
public static void warn(Object msg)
public static void warn(Throwable e)
public static void error(Object msg)
public static void error(Throwable e)
public static void fatal(Object msg)
public static void fatal(Throwable e)
public static void simple(Object msg)
Copyright © 2020 Voovan. All rights reserved.