log-base-0.8.0.0: Structured logging solution (base package)

Safe HaskellNone
LanguageHaskell2010

Log.Data

Description

Basic data types used throughout the package.

Synopsis

Documentation

data LogLevel Source #

Available log levels.

Constructors

LogAttention 
LogInfo 
LogTrace 
Instances
Bounded LogLevel Source # 
Instance details

Defined in Log.Data

Eq LogLevel Source # 
Instance details

Defined in Log.Data

Ord LogLevel Source # 
Instance details

Defined in Log.Data

Show LogLevel Source # 
Instance details

Defined in Log.Data

ToJSON LogLevel Source # 
Instance details

Defined in Log.Data

FromJSON LogLevel Source # 
Instance details

Defined in Log.Data

NFData LogLevel Source # 
Instance details

Defined in Log.Data

Methods

rnf :: LogLevel -> () #

readLogLevel :: Text -> LogLevel Source #

This function is partial.

data LogMessage Source #

Represents message to be logged.

Constructors

LogMessage 

Fields

Instances
Eq LogMessage Source # 
Instance details

Defined in Log.Data

Show LogMessage Source # 
Instance details

Defined in Log.Data

ToJSON LogMessage Source # 
Instance details

Defined in Log.Data

FromJSON LogMessage Source # 
Instance details

Defined in Log.Data

NFData LogMessage Source # 
Instance details

Defined in Log.Data

Methods

rnf :: LogMessage -> () #

showLogMessage Source #

Arguments

:: Maybe UTCTime

The time that message was added to the log.

-> LogMessage

The actual message.

-> Text 

Render a LogMessage to Text.