module Control.Monad.Logger.CallStack (
module Log
, logDebug
, logInfo
, logWarn
, logError
, logOther
, logDebugSH
, logInfoSH
, logWarnSH
, logErrorSH
, logOtherSH
) where
import Control.Monad.Logger as Log hiding (logDebug, logDebugSH,
logError, logErrorSH, logInfo,
logInfoSH, logOther, logOtherSH,
logWarn, logWarnSH)
import Data.Text (Text)
import qualified Data.Text as Text
import GHC.Stack
logDebug :: (HasCallStack, Log.MonadLogger m) => Text -> m ()
logDebug :: forall (m :: * -> *). (HasCallStack, MonadLogger m) => Text -> m ()
logDebug = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logDebugCS HasCallStack => CallStack
callStack
logInfo :: (HasCallStack, Log.MonadLogger m) => Text -> m ()
logInfo :: forall (m :: * -> *). (HasCallStack, MonadLogger m) => Text -> m ()
logInfo = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logInfoCS HasCallStack => CallStack
callStack
logWarn :: (HasCallStack, Log.MonadLogger m) => Text -> m ()
logWarn :: forall (m :: * -> *). (HasCallStack, MonadLogger m) => Text -> m ()
logWarn = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logWarnCS HasCallStack => CallStack
callStack
logError :: (HasCallStack, Log.MonadLogger m) => Text -> m ()
logError :: forall (m :: * -> *). (HasCallStack, MonadLogger m) => Text -> m ()
logError = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logErrorCS HasCallStack => CallStack
callStack
logOther :: (HasCallStack, Log.MonadLogger m) => Log.LogLevel -> Text -> m ()
logOther :: forall (m :: * -> *).
(HasCallStack, MonadLogger m) =>
LogLevel -> Text -> m ()
logOther = forall (m :: * -> *).
MonadLogger m =>
CallStack -> LogLevel -> Text -> m ()
Log.logOtherCS HasCallStack => CallStack
callStack
logDebugSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()
logDebugSH :: forall (m :: * -> *) a.
(HasCallStack, MonadLogger m, Show a) =>
a -> m ()
logDebugSH = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logDebugCS HasCallStack => CallStack
callStack forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Text
Text.pack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
logInfoSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()
logInfoSH :: forall (m :: * -> *) a.
(HasCallStack, MonadLogger m, Show a) =>
a -> m ()
logInfoSH = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logInfoCS HasCallStack => CallStack
callStack forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Text
Text.pack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
logWarnSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()
logWarnSH :: forall (m :: * -> *) a.
(HasCallStack, MonadLogger m, Show a) =>
a -> m ()
logWarnSH = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logWarnCS HasCallStack => CallStack
callStack forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Text
Text.pack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
logErrorSH :: (HasCallStack, Log.MonadLogger m, Show a) => a -> m ()
logErrorSH :: forall (m :: * -> *) a.
(HasCallStack, MonadLogger m, Show a) =>
a -> m ()
logErrorSH = forall (m :: * -> *). MonadLogger m => CallStack -> Text -> m ()
Log.logErrorCS HasCallStack => CallStack
callStack forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Text
Text.pack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show
logOtherSH :: (HasCallStack, Log.MonadLogger m, Show a) => Log.LogLevel -> a -> m ()
logOtherSH :: forall (m :: * -> *) a.
(HasCallStack, MonadLogger m, Show a) =>
LogLevel -> a -> m ()
logOtherSH LogLevel
lvl = forall (m :: * -> *).
MonadLogger m =>
CallStack -> LogLevel -> Text -> m ()
Log.logOtherCS HasCallStack => CallStack
callStack LogLevel
lvl forall b c a. (b -> c) -> (a -> b) -> a -> c
. String -> Text
Text.pack forall b c a. (b -> c) -> (a -> b) -> a -> c
. forall a. Show a => a -> String
show