polysemy-log-0.1.0.0: Polysemy effects for logging
Safe HaskellNone
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.