plow-log-0.1.6.0: Contravariant logging library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Plow.Logging.Message

Synopsis

Documentation

data LogLevel Source #

Generic log levels

Instances

Instances details
FromJSON LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

ToJSON LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

Generic LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

Associated Types

type Rep LogLevel :: Type -> Type #

Methods

from :: LogLevel -> Rep LogLevel x #

to :: Rep LogLevel x -> LogLevel #

Show LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

Eq LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

Ord LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

HasEnumerableConstructors LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

type Rep LogLevel Source # 
Instance details

Defined in Plow.Logging.Message

type Rep LogLevel = D1 ('MetaData "LogLevel" "Plow.Logging.Message" "plow-log-0.1.6.0-8Hic3QabCEe9Szbi4iY3n4" 'False) ((C1 ('MetaCons "LevelDebug" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LevelInfo" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LevelWarn" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "LevelError" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LevelOther" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

data LogMessage a Source #

A log message that allows for a log level to be specified or for the log to be ignored.

Constructors

Stdout LogLevel a 
Ignore 

Instances

Instances details
Semigroup String => Semigroup (LogMessage String) Source #

Concatenates two log messages with a newline, keeping the log level of that has the higher severity

Instance details

Defined in Plow.Logging.Message

Generic (LogMessage a) Source # 
Instance details

Defined in Plow.Logging.Message

Associated Types

type Rep (LogMessage a) :: Type -> Type #

Methods

from :: LogMessage a -> Rep (LogMessage a) x #

to :: Rep (LogMessage a) x -> LogMessage a #

Show a => Show (LogMessage a) Source # 
Instance details

Defined in Plow.Logging.Message

HasEnumerableConstructors a => HasEnumerableConstructors (LogMessage a) Source # 
Instance details

Defined in Plow.Logging.Message

type Rep (LogMessage a) Source # 
Instance details

Defined in Plow.Logging.Message

type Rep (LogMessage a) = D1 ('MetaData "LogMessage" "Plow.Logging.Message" "plow-log-0.1.6.0-8Hic3QabCEe9Szbi4iY3n4" 'False) (C1 ('MetaCons "Stdout" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LogLevel) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "Ignore" 'PrefixI 'False) (U1 :: Type -> Type))