Module LoggingUtils

This module is undocumented. This is a list of its definitions.

allLogs :: <Proc> Map.T String [Path]

The log files offered by the registered log providers, as a map from the simple class name of each provider to its files.

archiveLogs :: String -> <Proc,Exception> ()

Collects every file of allLogs into a zip archive written to the given path, one directory per log provider. A file that cannot be copied is logged and left out rather than failing the archiving.

setLoggingLevel :: String -> <Proc> ()

Sets the level of every logger that is currently configured, given as a Logback level name such as "DEBUG", "INFO" or "WARN". An unrecognized name means "DEBUG". Loggers created after this call are unaffected.

setLoggingLevelForLogger :: String -> String -> <Proc> ()

setLoggingLevelForLogger logger level sets the level of one logger, named by its logger name such as "org.simantics.db". Loggers below it in the name hierarchy inherit the level unless they set one of their own.