@ThreadSafe public final class LogUtils extends Object
Modifier and Type | Method and Description |
---|---|
static LogInfo |
setLogLevel(String logName,
String level)
Gets a logger's level with specify name, if the level argument is not null, it will set to
specify level first.
|
static void |
warnWithException(org.slf4j.Logger logger,
String message,
Object... args)
Log a warning message with full exception if debug logging is enabled,
or just the message otherwise.
|
public static LogInfo setLogLevel(String logName, String level) throws IOException
logName
- logger's namelevel
- logger's levelIOException
- if an I/O error occurspublic static void warnWithException(org.slf4j.Logger logger, String message, Object... args)
logger
- the logger to be usedmessage
- the message to be loggedargs
- the arguments for the messageCopyright © 2023. All Rights Reserved.