heavy-logger-0.1.0.0: Full-weight logging based on fast-logger

Safe HaskellNone
LanguageHaskell2010

System.Log.Heavy.Shortcuts

Contents

Description

This module contains some shortcut functions that can be of use in simple usage cases.

Synopsis

Log a message

reportError :: (VarContainer vars, MonadIO m) => Text -> vars -> LoggingT m () Source #

Log error message. Note: this message will not contain source information.

warning :: (VarContainer vars, MonadIO m) => Text -> vars -> LoggingT m () Source #

Log warning message. Note: this message will not contain source information.

info :: (VarContainer vars, MonadIO m) => Text -> vars -> LoggingT m () Source #

Log info message. Note: this message will not contain source information.

debug :: (VarContainer vars, MonadIO m) => Text -> vars -> LoggingT m () Source #

Log debug message. Note: this message will not contain source information.

Creating a message

errorMessage :: VarContainer vars => Text -> vars -> LogMessage Source #

Message stub with Error severity.

warnMessage :: VarContainer vars => Text -> vars -> LogMessage Source #

Message stub with Warning severity.

infoMessage :: VarContainer vars => Text -> vars -> LogMessage Source #

Message stub with Info severity.

debugMessage :: VarContainer vars => Text -> vars -> LogMessage Source #

Message stub with Debug severity.