diff --git a/src/System/Logger.hs b/src/System/Logger.hs index 6b33989e33c3a6fe05dc092af6cb4994f8628345..074a411e5aa2ef6d2ad4640c667cf8e31873505c 100644 --- a/src/System/Logger.hs +++ b/src/System/Logger.hs @@ -137,13 +137,13 @@ readNote m s = case reads s of [(a, "")] -> a _ -> error m --- | Logs a message with the given level if greater of equal to the +-- | Logs a message with the given level if greater or equal to the -- logger's threshold. log :: MonadIO m => Logger -> Level -> (Msg -> Msg) -> m () log g l m = unless (level g > l) . liftIO $ putMsg g l m {-# INLINE log #-} --- | Abbreviation for 'log' using the corresponding log level. +-- | Abbreviation of 'log' using the corresponding log level. trace, debug, info, warn, err, fatal :: MonadIO m => Logger -> (Msg -> Msg) -> m () trace g = log g Trace debug g = log g Debug diff --git a/tinylog.cabal b/tinylog.cabal index ef2cb62c057dada0b5e9afb92f91fe995334b0b0..1216ff3ef710ff850017a9cf53e40093502e9442 100644 --- a/tinylog.cabal +++ b/tinylog.cabal @@ -4,11 +4,11 @@ synopsis: Simplistic logging using fast-logger. author: Toralf Wittner maintainer: Toralf Wittner copyright: (c) 2014 Toralf Wittner -license: MPL-2.0 +license: OtherLicense license-file: LICENSE category: System build-type: Simple -cabal-version: >= 1.20 +cabal-version: >= 1.10 description: Trivial logger on top of fast-logger. @@ -30,9 +30,9 @@ library build-depends: base == 4.* - , bytestring >= 0.10 - , date-cache >= 0.3 - , fast-logger >= 2.1.4 && < 2.2 - , text >= 0.11 && < 1.2 + , bytestring >= 0.10.4 && < 0.11 + , date-cache >= 0.3 && < 0.4 + , fast-logger >= 2.1.4 && < 2.2 + , text >= 0.11 && < 1.2 , transformers >= 0.3 - , unix-time >= 0.1 + , unix-time >= 0.1 && < 0.3