public class Logger extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Logger.LogBackEnd
Interface for a logging backend that can be attached to the logger.
|
static class |
Logger.LogLevel |
static class |
Logger.Slf4jLogBackEnd
Slf4j logging backend.
|
| Constructor and Description |
|---|
Logger() |
| Modifier and Type | Method and Description |
|---|---|
static Logger.LogBackEnd |
getBackend()
Gets the currently attached logging backend.
|
static void |
log(Class<?> clazz,
Logger.LogLevel loglevel,
String msg,
Object... params)
Logs a message.
|
static void |
setBackend(Logger.LogBackEnd backend)
Attaches a new logging backend replacing the existing one.
|
public static Logger.LogBackEnd getBackend()
public static void setBackend(Logger.LogBackEnd backend)
backend - The backend to set.public static void log(Class<?> clazz, Logger.LogLevel loglevel, String msg, Object... params)
clazz - the class that sends the log message.loglevel - the logging level.msg - the message format string.params - the message parameters for the format string.Copyright © 2023. All rights reserved.