katip 0.5.5.0 → 0.5.5.1
raw patch · 3 files changed
+10/−6 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- changelog.md +4/−0
- katip.cabal +1/−1
- src/Katip/Core.hs +5/−5
changelog.md view
@@ -1,3 +1,7 @@+0.5.5.1+=======+* Decrease default timer resolution from 1s to 1ms.+ 0.5.5.0 ======= * Export `runNoLoggingT` and `NoLoggingT` constructor.
katip.cabal view
@@ -1,5 +1,5 @@ name: katip-version: 0.5.5.0+version: 0.5.5.1 synopsis: A structured logging framework. description: Katip is a structured logging framework. See README.md for more details.
src/Katip/Core.hs view
@@ -601,10 +601,10 @@ ---------------------------------------------------------------------------------- | Create a reasonable default InitLogEnv. Uses an 'AutoUdate' with--- the default settings as the timer. If you are concerned about--- timestamp precision or event ordering in log outputs like--- ElasticSearch, you should replace the timer with 'getCurrentTime'+-- | Create a reasonable default InitLogEnv. Uses an 'AutoUdate' which+-- updates the timer every 1ms. If you need even more timestamp+-- precision at the cost of performance, consider setting+-- '_logEnvTimer' with 'getCurrentTime'. initLogEnv :: Namespace -- ^ A base namespace for this application@@ -616,7 +616,7 @@ <*> getProcessID <*> pure an <*> pure env- <*> mkAutoUpdate defaultUpdateSettings { updateAction = getCurrentTime }+ <*> mkAutoUpdate defaultUpdateSettings { updateAction = getCurrentTime, updateFreq = 1000 } <*> pure mempty