hreg-0.0.1

Safe HaskellNone
LanguageHaskell2010

Logger

Description

 
Synopsis

Documentation

logInfo :: WithLog env Message m => Text -> m () #

Logs the message with the Info severity.

log :: (HasCallStack, MonadIO m) => CallStack -> Severity -> Text -> m () #

data Severity #

Severity for the log messages.

Constructors

Debug

Information useful for debug purposes.

E.g. output of the function that is important for the internal development, not for users. Like, the result of SQL query.

Info

Normal operational information.

E.g. describing general steps: starting application, finished downloading.

Warning

General warnings, non-critical failures.

E.g. couldn't download icon from some service to display.

Error

General errors/severe errors.

E.g. exceptional situations: couldn't syncronize accounts.

Instances
Bounded Severity 
Instance details

Defined in Colog.Core.Severity

Enum Severity 
Instance details

Defined in Colog.Core.Severity

Eq Severity 
Instance details

Defined in Colog.Core.Severity

Ord Severity 
Instance details

Defined in Colog.Core.Severity

Read Severity 
Instance details

Defined in Colog.Core.Severity

Show Severity 
Instance details

Defined in Colog.Core.Severity

Methods

showsPrec :: Int -> Severity -> ShowS

show :: Severity -> String

showList :: [Severity] -> ShowS

Ix Severity 
Instance details

Defined in Colog.Core.Severity