java.lang.Object
com.dua3.utility.logging.LogUtil
Utility class for logging operations.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidChecks if the globalDispatcher variable is null and initializes it by calling the init() method if necessary.static LogEntryDispatcherReturns the global LogEntryDispatcher by using the available ILogEntryDispatcherFactory implementations loaded through ServiceLoader and connects all known loggers to it.
-
Method Details
-
assureInitialized
public static void assureInitialized()Checks if the globalDispatcher variable is null and initializes it by calling the init() method if necessary.- Throws:
ServiceConfigurationError- if no factories can create a LogEntryDispatcher
-
getGlobalDispatcher
Returns the global LogEntryDispatcher by using the available ILogEntryDispatcherFactory implementations loaded through ServiceLoader and connects all known loggers to it.- Returns:
- The global LogEntryDispatcher instance.
- Throws:
ServiceConfigurationError- if no factories can create a LogEntryDispatcher.
-