Safe Haskell | None |
---|---|
Language | GHC2021 |
Unclog.Render
Description
functions for different ways of rendering log entries to bytestring builders
Synopsis
- simpleBuilder :: LogEntry -> Builder
- colouredBuilder :: LogEntry -> Builder
- builderWithFn :: (Builder -> Builder) -> LogEntry -> Builder
- renderLevel :: LogLevel -> Builder
- renderLocation :: Location -> Builder
- colourLevel :: LogLevel -> Builder -> Builder
- bracketBuilder :: Builder -> Builder
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
bracketBuilder :: Builder -> Builder Source #
surround a builder with brackets