Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- formatSeverity :: Severity -> Text
- shortModule :: Text -> Text
- formatCaller :: CallStack -> Text
- formatLogEntry :: LogEntry LogMessage -> Text
Documentation
formatSeverity :: Severity -> Text Source #
Create a colored tag with the format "[tag]"
for a Severity
value.
shortModule :: Text -> Text Source #
Turn a module string like Foo.Bar.Baz
into an abbreviated F.B.Baz
.
formatCaller :: CallStack -> Text Source #
Format a call stack's top element as F.B.Baz
with the line number.
formatLogEntry :: LogEntry LogMessage -> Text Source #
Default formatter for the default message type.