public class Logging extends Object
| Constructor and Description |
|---|
Logging() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addLoggingListener(LoggingListener loggingListener)
Adds a listener to the log handler.
|
static Logger |
getLogger(Class<?> loggerClass)
Returns a named logger from the logger hierarchy.
|
static Logger |
getLogger(String name)
Returns a named logger from the logger hierarchy.
|
static Class<?> |
getLoggerClass(String loggerName)
Returns the class that created the logger with the given name.
|
static void |
removeLoggingListener(LoggingListener loggingListener)
Removes a listener from the log handler.
|
static void |
setRootLevel(Level rootLevel)
Sets the log level of the hierarchy’s root logger.
|
static void |
setup(String hierarchyName)
Sets up logging and installs the log handler.
|
static void |
setupConsoleLogging()
Initializes console logging.
|
static void |
shutdown()
Shuts this logging hierarchy down by removing all
Handlers from
the root logger. |
public static void addLoggingListener(LoggingListener loggingListener)
loggingListener - The listener to addpublic static void removeLoggingListener(LoggingListener loggingListener)
loggingListener - The listener to removepublic static void setup(String hierarchyName)
hierarchyName - The name of the hierarchy root loggerpublic static void setupConsoleLogging()
public static void shutdown()
Handlers from
the root logger.public static Logger getLogger(String name)
name - The name of the loggerpublic static Logger getLogger(Class<?> loggerClass)
loggerClass - The class of the loggerpublic static void setRootLevel(Level rootLevel)
rootLevel - The log level for the root loggerCopyright © 2026. All rights reserved.