heavy-logger-0.3.2.1: 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 :: forall m vars. (ClosedVarContainer vars, MonadIO m, HasLogging m) => Text -> vars -> m () Source #

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

warning :: forall m vars. (ClosedVarContainer vars, MonadIO m, HasLogging m) => Text -> vars -> m () Source #

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

info :: forall m vars. (ClosedVarContainer vars, MonadIO m, HasLogging m) => Text -> vars -> m () Source #

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

debug :: forall m vars. (ClosedVarContainer vars, MonadIO m, HasLogging m) => Text -> vars -> m () Source #

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

Creating a message

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

Message stub with Error severity.

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

Message stub with Warning severity.

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

Message stub with Info severity.

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

Message stub with Debug severity.