little-logger-3.0.0: Basic logging based on monad-logger
Safe HaskellSafe-Inferred
LanguageHaskell2010

LittleLogger

Synopsis

Documentation

newtype LogAction Source #

Constructors

LogAction 

Fields

Instances

Instances details
Monoid LogAction Source # 
Instance details

Defined in LittleLogger

Semigroup LogAction Source # 
Instance details

Defined in LittleLogger

HasLogAction LogAction Source # 
Instance details

Defined in LittleLogger

Monad m => MonadReader LogAction (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

ask :: LogActionT m LogAction #

local :: (LogAction -> LogAction) -> LogActionT m a -> LogActionT m a #

reader :: (LogAction -> a) -> LogActionT m a #

class HasLogAction env where Source #

Instances

Instances details
HasLogAction LogAction Source # 
Instance details

Defined in LittleLogger

type WithLogAction env m = (MonadIO m, MonadReader env m, HasLogAction env) Source #

newtype LogActionWrapperM env m a Source #

Use deriving-via with this wrapper to add MonadLogger instances to your types

Constructors

LogActionM 

Fields

Instances

Instances details
MonadReader env m => MonadReader env (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

ask :: LogActionWrapperM env m env #

local :: (env -> env) -> LogActionWrapperM env m a -> LogActionWrapperM env m a #

reader :: (env -> a) -> LogActionWrapperM env m a #

MonadIO m => MonadIO (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

liftIO :: IO a -> LogActionWrapperM env m a #

Applicative m => Applicative (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

pure :: a -> LogActionWrapperM env m a #

(<*>) :: LogActionWrapperM env m (a -> b) -> LogActionWrapperM env m a -> LogActionWrapperM env m b #

liftA2 :: (a -> b -> c) -> LogActionWrapperM env m a -> LogActionWrapperM env m b -> LogActionWrapperM env m c #

(*>) :: LogActionWrapperM env m a -> LogActionWrapperM env m b -> LogActionWrapperM env m b #

(<*) :: LogActionWrapperM env m a -> LogActionWrapperM env m b -> LogActionWrapperM env m a #

Functor m => Functor (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

fmap :: (a -> b) -> LogActionWrapperM env m a -> LogActionWrapperM env m b #

(<$) :: a -> LogActionWrapperM env m b -> LogActionWrapperM env m a #

Monad m => Monad (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

(>>=) :: LogActionWrapperM env m a -> (a -> LogActionWrapperM env m b) -> LogActionWrapperM env m b #

(>>) :: LogActionWrapperM env m a -> LogActionWrapperM env m b -> LogActionWrapperM env m b #

return :: a -> LogActionWrapperM env m a #

WithLogAction env m => MonadLogger (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> LogActionWrapperM env m () #

newtype LogActionT m a Source #

Constructors

LogActionT 

Instances

Instances details
Monad m => MonadReader LogAction (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

ask :: LogActionT m LogAction #

local :: (LogAction -> LogAction) -> LogActionT m a -> LogActionT m a #

reader :: (LogAction -> a) -> LogActionT m a #

MonadIO m => MonadIO (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

liftIO :: IO a -> LogActionT m a #

Applicative m => Applicative (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

pure :: a -> LogActionT m a #

(<*>) :: LogActionT m (a -> b) -> LogActionT m a -> LogActionT m b #

liftA2 :: (a -> b -> c) -> LogActionT m a -> LogActionT m b -> LogActionT m c #

(*>) :: LogActionT m a -> LogActionT m b -> LogActionT m b #

(<*) :: LogActionT m a -> LogActionT m b -> LogActionT m a #

Functor m => Functor (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

fmap :: (a -> b) -> LogActionT m a -> LogActionT m b #

(<$) :: a -> LogActionT m b -> LogActionT m a #

Monad m => Monad (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

(>>=) :: LogActionT m a -> (a -> LogActionT m b) -> LogActionT m b #

(>>) :: LogActionT m a -> LogActionT m b -> LogActionT m b #

return :: a -> LogActionT m a #

MonadIO m => MonadLogger (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> LogActionT m () #

class Monad m => MonadLogger (m :: Type -> Type) where #

A Monad which has the ability to log messages in some manner.

Minimal complete definition

Nothing

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> m () #

Instances

Instances details
MonadIO m => MonadLogger (LogActionT m) Source # 
Instance details

Defined in LittleLogger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> LogActionT m () #

MonadIO m => MonadLogger (LoggingT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> LoggingT m () #

Monad m => MonadLogger (NoLoggingT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> NoLoggingT m () #

Monad m => MonadLogger (WriterLoggingT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> WriterLoggingT m () #

MonadLogger m => MonadLogger (ResourceT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> ResourceT m () #

MonadLogger m => MonadLogger (MaybeT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> MaybeT m () #

WithLogAction env m => MonadLogger (LogActionWrapperM env m) Source # 
Instance details

Defined in LittleLogger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> LogActionWrapperM env m () #

MonadLogger m => MonadLogger (ExceptT e m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> ExceptT e m () #

MonadLogger m => MonadLogger (IdentityT m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> IdentityT m () #

MonadLogger m => MonadLogger (ReaderT r m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> ReaderT r m () #

MonadLogger m => MonadLogger (StateT s m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> StateT s m () #

MonadLogger m => MonadLogger (StateT s m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> StateT s m () #

(MonadLogger m, Monoid w) => MonadLogger (WriterT w m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> WriterT w m () #

(MonadLogger m, Monoid w) => MonadLogger (WriterT w m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> WriterT w m () #

MonadLogger m => MonadLogger (ConduitM i o m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> ConduitM i o m () #

MonadLogger m => MonadLogger (ContT r m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> ContT r m () #

(MonadLogger m, Monoid w) => MonadLogger (RWST r w s m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> RWST r w s m () #

(MonadLogger m, Monoid w) => MonadLogger (RWST r w s m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> RWST r w s m () #

MonadLogger m => MonadLogger (Pipe l i o u m) 
Instance details

Defined in Control.Monad.Logger

Methods

monadLoggerLog :: ToLogStr msg => Loc -> LogSource -> LogLevel -> msg -> Pipe l i o u m () #

data Loc #

Instances

Instances details
Data Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Loc -> c Loc #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Loc #

toConstr :: Loc -> Constr #

dataTypeOf :: Loc -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Loc) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Loc) #

gmapT :: (forall b. Data b => b -> b) -> Loc -> Loc #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Loc -> r #

gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Loc -> r #

gmapQ :: (forall d. Data d => d -> u) -> Loc -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Loc -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Loc -> m Loc #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Loc -> m Loc #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Loc -> m Loc #

Generic Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

Associated Types

type Rep Loc :: Type -> Type #

Methods

from :: Loc -> Rep Loc x #

to :: Rep Loc x -> Loc #

Show Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

showsPrec :: Int -> Loc -> ShowS #

show :: Loc -> String #

showList :: [Loc] -> ShowS #

Eq Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

(==) :: Loc -> Loc -> Bool #

(/=) :: Loc -> Loc -> Bool #

Ord Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

Methods

compare :: Loc -> Loc -> Ordering #

(<) :: Loc -> Loc -> Bool #

(<=) :: Loc -> Loc -> Bool #

(>) :: Loc -> Loc -> Bool #

(>=) :: Loc -> Loc -> Bool #

max :: Loc -> Loc -> Loc #

min :: Loc -> Loc -> Loc #

type Rep Loc 
Instance details

Defined in Language.Haskell.TH.Syntax

data LogLevel #

Instances

Instances details
Read LogLevel 
Instance details

Defined in Control.Monad.Logger

Show LogLevel 
Instance details

Defined in Control.Monad.Logger

Eq LogLevel 
Instance details

Defined in Control.Monad.Logger

Ord LogLevel 
Instance details

Defined in Control.Monad.Logger

Lift LogLevel 
Instance details

Defined in Control.Monad.Logger

Methods

lift :: Quote m => LogLevel -> m Exp #

liftTyped :: forall (m :: Type -> Type). Quote m => LogLevel -> Code m LogLevel #

data LogStr #

Log message builder. Use (<>) to append two LogStr in O(1).

Instances

Instances details
IsString LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

fromString :: String -> LogStr #

Monoid LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Semigroup LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Show LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

ToLogStr LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: LogStr -> LogStr #

Eq LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

(==) :: LogStr -> LogStr -> Bool #

(/=) :: LogStr -> LogStr -> Bool #

class ToLogStr msg where #

Types that can be converted to a LogStr. Instances for types from the text library use a UTF-8 encoding. Instances for numerical types use a decimal encoding.

Methods

toLogStr :: msg -> LogStr #

Instances

Instances details
ToLogStr Int16

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Int16 -> LogStr #

ToLogStr Int32

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Int32 -> LogStr #

ToLogStr Int64

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Int64 -> LogStr #

ToLogStr Int8

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Int8 -> LogStr #

ToLogStr Word16

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Word16 -> LogStr #

ToLogStr Word32

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Word32 -> LogStr #

ToLogStr Word64

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Word64 -> LogStr #

ToLogStr Word8

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Word8 -> LogStr #

ToLogStr Builder 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Builder -> LogStr #

ToLogStr ByteString 
Instance details

Defined in System.Log.FastLogger.LogStr

ToLogStr ByteString 
Instance details

Defined in System.Log.FastLogger.LogStr

ToLogStr ShortByteString 
Instance details

Defined in System.Log.FastLogger.LogStr

ToLogStr LogStr 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: LogStr -> LogStr #

ToLogStr Text 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Text -> LogStr #

ToLogStr Text 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Text -> LogStr #

ToLogStr String 
Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: String -> LogStr #

ToLogStr Integer

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Integer -> LogStr #

ToLogStr Double

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Double -> LogStr #

ToLogStr Float

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Float -> LogStr #

ToLogStr Int

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Int -> LogStr #

ToLogStr Word

Since: fast-logger-2.4.14

Instance details

Defined in System.Log.FastLogger.LogStr

Methods

toLogStr :: Word -> LogStr #

logDebugN :: MonadLogger m => Text -> m () #

logInfoN :: MonadLogger m => Text -> m () #

logWarnN :: MonadLogger m => Text -> m () #

logErrorN :: MonadLogger m => Text -> m () #

logOtherN :: MonadLogger m => LogLevel -> Text -> m () #