Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Colorful logging for humans
Lines are formatted as
{timestamp} [{level}] {message} {details}
level
is padded to 9 characters and message
is padded to 31. This means
things will align as long as values are shorter than that. Longer values will
overflow (not be truncated).
This format was designed to match Python's structlog package in its default configuration.
Documentation
reformatTerminal :: Int -> Bool -> LogLevel -> ByteString -> ByteString Source #