log package:doctest-parallel

Basic logging function. Uses formatLogHere. Is not thread-safe.
Convenience type alias - not used in this module, but sprinkled across the project.
Prettily format a log message
threadId <- myThreadId
formatLog Debug (show threadId) "some debug message"
"[DEBUG ] [ThreadId 1277462] some debug message"
Like formatLog, but instantiates the thread argument with the current ThreadId
formatLogHere Debug "some debug message"
"[DEBUG ] [ThreadId 1440849] some debug message"
Discards any log message
Case insensitive
>>> parseLogLevel "Info"
Just Info

>>> parseLogLevel "info"
Just Info

>>> parseLogLevel "errox"
Nothing
Should a message be printed? For a given verbosity level and message log level.
Pretty print a LogLevel in a justified manner, i.e., all outputs take the same amount of characters to display.
>>> showJustifiedLogLevel Debug
"Debug  "

>>> showJustifiedLogLevel Verbose
"Verbose"

>>> showJustifiedLogLevel Info
"Info   "

>>> showJustifiedLogLevel Warning
"Warning"

>>> showJustifiedLogLevel Error
"Error  "
Verbosity level.
Parse seed argument
>>> parseLogLevel "--log-level=Debug"
Just Debug

>>> parseLogLevel "--log-level=debug"
Just Debug

>>> parseSeed "---log-level=debug"
Nothing
Unstructured message