polysemy-log-0.6.0.1: Polysemy Effects for Logging
Safe HaskellSafe-Inferred
LanguageHaskell2010

Polysemy.Log.Format

Description

 
Synopsis

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.