logging-effect-extra 1.0.0 → 1.1.0
raw patch · 5 files changed
+24/−13 lines, 5 filesdep +logging-effect-extra-handlerdep ~logging-effect-extra-filePVP ok
version bump matches the API change (PVP)
Dependencies added: logging-effect-extra-handler
Dependency ranges changed: logging-effect-extra-file
API changes (from Hackage documentation)
Files
- CHANGELOG.md +7/−1
- executable/log-extra.hs +3/−4
- library/Control/Monad/Log/Extra.hs +2/−0
- logging-effect-extra.cabal +6/−4
- package.yaml +6/−4
CHANGELOG.md view
@@ -1,5 +1,11 @@ # Change log +## 1.1.0++* Add `logging-effect-extra-handler` dependency+* Bump min version of `logging-effect-extra-file` to 1.1.0+* Update `log-extra` example to use `logInfoTH` instead of deprecated `logInformationalTH` splice+ ## 1.0.0 -Initial release+* Initial release
executable/log-extra.hs view
@@ -6,7 +6,6 @@ import Control.Monad.Log.Extra (Doc, WithFile, MonadLog, WithSeverity) import qualified Control.Monad.Log.Extra as Log-import qualified System.IO as IO app :: MonadLog (WithSeverity (WithFile Doc)) m => m () app = do@@ -16,9 +15,9 @@ $(Log.logErrorTH) "Errors abound!" $(Log.logWarningTH) "Cargo number 2331 has commandeered the vessel" $(Log.logNoticeTH) "Heads up, but it's no biggie."- $(Log.logInformationalTH) "Does anyone read these?"+ $(Log.logInfoTH) "Does anyone read these?" $(Log.logDebugTH) "Sleuthing with log messages..." main :: IO ()-main = Log.withFDHandler Log.defaultBatchingOptions IO.stdout 0.4 80 $ \stdoutHandler ->- Log.runLoggingT app (stdoutHandler . Log.renderWithSeverity (Log.renderWithFile id))+main = Log.withStdoutHandler $ \stdoutHandler ->+ Log.runLoggingT app (Log.iso8601PlusHandler stdoutHandler . Log.renderWithSeverity (Log.renderWithFile id))
library/Control/Monad/Log/Extra.hs view
@@ -2,6 +2,7 @@ ( -- * Batteries module Control.Monad.Log , module Control.Monad.Log.Extra.File+ , module Control.Monad.Log.Extra.Handler -- * Re-exports , module Text.PrettyPrint.Leijen.Text@@ -9,4 +10,5 @@ import Control.Monad.Log import Control.Monad.Log.Extra.File+import Control.Monad.Log.Extra.Handler import Text.PrettyPrint.Leijen.Text (Doc)
logging-effect-extra.cabal view
@@ -3,12 +3,13 @@ -- see: https://github.com/sol/hpack name: logging-effect-extra-version: 1.0.0-synopsis: Batteries-included `logging-effect`.-description: Batteries-included `logging-effect`.+version: 1.1.0+synopsis: Supplemental packages for `logging-effect`.+description: Supplemental packages for `logging-effect`. category: Other homepage: https://github.com/jship/logging-effect-extra#readme bug-reports: https://github.com/jship/logging-effect-extra/issues+author: Jason Shipman maintainer: Jason Shipman license: MIT build-type: Simple@@ -31,7 +32,8 @@ build-depends: base >=4.8 && <4.11 , logging-effect >= 1.1.0 && <1.3- , logging-effect-extra-file >= 1.0.0 && < 1.1.0+ , logging-effect-extra-file >= 1.1.0 && <1.2.0+ , logging-effect-extra-handler >= 1.0.0 && <1.1.0 , wl-pprint-text >=1.1.0.4 && <1.2 exposed-modules: Control.Monad.Log.Extra
package.yaml view
@@ -1,7 +1,8 @@+author: Jason Shipman category: Other dependencies: - base >=4.8 && <4.11-description: Batteries-included `logging-effect`.+description: Supplemental packages for `logging-effect`. executables: log-extra: dependencies:@@ -22,11 +23,12 @@ library: dependencies: - logging-effect >= 1.1.0 && <1.3- - logging-effect-extra-file >= 1.0.0 && < 1.1.0+ - logging-effect-extra-file >= 1.1.0 && <1.2.0+ - logging-effect-extra-handler >= 1.0.0 && <1.1.0 - wl-pprint-text >=1.1.0.4 && <1.2 source-dirs: library license: MIT maintainer: Jason Shipman name: logging-effect-extra-synopsis: Batteries-included `logging-effect`.-version: '1.0.0'+synopsis: Supplemental packages for `logging-effect`.+version: '1.1.0'