Class LoggingUtil
java.lang.Object
com.github.rlacher.sortbench.logging.LoggingUtil
Logging-related utility class.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidsetFormatter(Formatter formatter) Applies a custom formatter to all handlers associated with the root logger.static voidSets the logging level for all handlers associated with the root logger.
-
Method Details
-
setFormatter
Applies a custom formatter to all handlers associated with the root logger.- Parameters:
formatter- TheFormatterto apply.- Throws:
IllegalArgumentException- Ifformatterisnull.
-
setLevel
Sets the logging level for all handlers associated with the root logger.- Parameters:
level- TheLevelto set.- Throws:
IllegalArgumentException- Iflevelisnull.
-