public final class Log extends Object
| Constructor and Description |
|---|
Log() |
| Modifier and Type | Method and Description |
|---|---|
static void |
critical(String fmt,
Object... args)
Log critical event.
|
static void |
critical(Throwable ex)
Log an exception as a critical error.
|
static void |
critical(Throwable ex,
String fmt,
Object... args)
Log an exception as a critical error.
|
static void |
debug(String fmt,
Object... args)
Log debug event.
|
static void |
debug(Supplier<String> msg)
Log a debug event, while avoiding any expensive code unless the logging
occurs.
|
static void |
error(String fmt,
Object... args)
Log error event.
|
static void |
error(Throwable ex)
Log an exception as an error.
|
static void |
error(Throwable ex,
String fmt,
Object... args)
Log an exception as an error.
|
static void |
info(String fmt,
Object... args)
Log informational event.
|
static void |
setDefaultLevel(Level level)
Set the default logging level.
|
static void |
setDefaultLogger(Logger logger)
Set the default application logger.
|
static void |
setLevel(Level level)
Set the log level for the package calling the logger.
|
static void |
setLogger(Logger logger)
Set the logger for the package calling the logger.
|
static void |
warning(String fmt,
Object... args)
Log warning event.
|
static void |
warning(Throwable ex)
Log an exception as a warning.
|
static void |
warning(Throwable ex,
String fmt,
Object... args)
Log an exception as a warning.
|
public static void critical(String fmt, Object... args)
fmt - The message format stringargs - The message argumentspublic static void critical(Throwable ex)
ex - The exceptionpublic static void critical(Throwable ex, String fmt, Object... args)
ex - The exceptionfmt - The message format stringargs - The message argumentspublic static void error(String fmt, Object... args)
fmt - The message format stringargs - The message argumentspublic static void error(Throwable ex)
ex - The exceptionpublic static void error(Throwable ex, String fmt, Object... args)
ex - The exceptionfmt - The message format stringargs - The message argumentspublic static void warning(String fmt, Object... args)
fmt - The message format stringargs - The message argumentspublic static void warning(Throwable ex)
ex - The exceptionpublic static void warning(Throwable ex, String fmt, Object... args)
ex - The exceptionfmt - The message format stringargs - The message argumentspublic static void info(String fmt, Object... args)
fmt - The message format stringargs - The message argumentspublic static void debug(String fmt, Object... args)
fmt - The message format stringargs - The message argumentspublic static void debug(Supplier<String> msg)
msg - A supplier that will provide the debug message when required.public static void setDefaultLogger(Logger logger)
logger - public static void setDefaultLevel(Level level)
level - The default level to set.public static void setLogger(Logger logger)
logger - public static void setLevel(Level level)
level - The log levelCopyright © 2020. All rights reserved.