chakra-0.1.0: A REST Web Api server template for building (micro)services.
Safe HaskellNone
LanguageHaskell2010

Chakra.Logging

Description

Logging utility functions

Synopsis

Documentation

data LogMessage Source #

Instances

Instances details
Eq LogMessage Source # 
Instance details

Defined in Chakra.Logging

Show LogMessage Source # 
Instance details

Defined in Chakra.Logging

Generic LogMessage Source # 
Instance details

Defined in Chakra.Logging

Associated Types

type Rep LogMessage :: Type -> Type #

ToJSON LogMessage Source # 
Instance details

Defined in Chakra.Logging

ToLogStr LogMessage Source # 
Instance details

Defined in Chakra.Logging

type Rep LogMessage Source # 
Instance details

Defined in Chakra.Logging

jsonFormatter :: Text -> Text -> Formatter Source #

Builds LogMessage and json encodes to string

newLogger :: LogType -> Formatter -> IO (TimedFastLogger, ModLogger) Source #

Creates a logger module using a given formatting function. | Also returns the underlying TimedFastLogger for use outside of your app (e.g. in some WAI middleware).

buildLogger :: Text -> Text -> IO ModLogger Source #

Convenient function to create json formatted logger with appName & appVer values

Orphan instances

Has ModLogger a => HasLogFunc a Source # 
Instance details

Methods

logFuncL :: Lens' a LogFunc #