unclogging-0.1.0.0: a library which implements easy, concurrent and pretty logging
Safe HaskellNone
LanguageGHC2021

Unclog.Render

Synopsis

rendering to bytestring builders

default builders

simpleBuilder :: LogEntry -> Builder Source #

a simple, non-coloured builder which takes all of the information into account

colouredBuilder :: LogEntry -> Builder Source #

a simple, coloured builder which takes all information into account but also makes it colourful

helpers

renderLevel :: LogLevel -> Builder Source #

render the log level with even spacing

renderLocation :: Location -> Builder Source #

render a source location

colourLevel :: LogLevel -> Builder -> Builder Source #

colour a builder according to the loglevel

bracketBuilder :: Builder -> Builder Source #

surround a builder with brackets