lumberjack 0.1.0.3 → 1.0.0.0
raw patch · 3 files changed
+21/−1 lines, 3 files
Files
- CHANGELOG.md +7/−0
- lumberjack.cabal +1/−1
- src/Lumberjack.hs +13/−0
CHANGELOG.md view
@@ -1,5 +1,12 @@ # Revision history for lumberjack +## 1.0.0.0 -- 2020-12-20++ * No longer Beta, so major version is now 1.0, although functionality+ has not changed other than the addition of the `|#` operator.++ * Added the `|#` convenience infix operator.+ ## 0.1.0.3 -- 2020-11-30 * Bump prettyprinter upper-bound to allow versions in the 1.7.x range.
lumberjack.cabal view
@@ -1,6 +1,6 @@ cabal-version: >=1.10 name: lumberjack-version: 0.1.0.3+version: 1.0.0.0 synopsis: Trek through your code forest and make logs description: This is a logging facility. Yes, there are many, and this is the one with a beard, wearing flannel and boots, that gets the job done. It's
src/Lumberjack.hs view
@@ -78,6 +78,7 @@ , cvtLogMessageToANSITermText -- * Helpers and convenience functions -- $helpers+ , (|#) , logFunctionCall, logFunctionCallM , logProgress, logProgressM , tshow@@ -241,6 +242,18 @@ -- then be updated. msgWith :: LogMessage msgWith = mempty+++-- | This operator is a convenient infix operator for logging a Text+-- message. This is especially useful when used in conjunction with+-- the 'OverloadedStrings' language pragma:+--+-- >>> warning|# "This is your last warning"+-- >>> error|# "Failure has occurred"++(|#) :: (LogMessage -> a) -> Text -> a+o |# t = o (msgWith { logText = t })+infixr 0 |# -- | Add the current timestamp to the LogMessage being logged