Changelog for yet-another-logger-0.2.3.1
0.2.3.1
- Add missing NFData instance for
Naturalwhen build with deepseq>=1.4 and base<4.8.
0.2.3
- Fix semantically invalid default NFData instance when build with deepseq <1.4.
0.2.2
-
[Issue #28] Generalized type of lens
logMsgto support changing the message type. -
[Issue #29] Fixed precision of
formatIso8601function. -
[Issue #30] Added a version of
withHandleBackendthat is generic in the log message type and accept a formatting function for formatting the log message as text.
0.2.1
- Support for trace-0.2.
0.2
-
Removed
MonadLogIO;MonadBaseControlshould be used instead. -
Issue #16: add an argument to all command-line options parsers that adds a prefix to the command-line options.
-
Issue #9: more robust logger backend
-
new functions that take an function of type
Text -> IO ()as an alternate backend to log issues in the logging system itself.withLogger_withLogFunction_createLogger_
-
new parameters
-
loggerConfigExceptionLimit: Number of consecutive backend exception that can occur before the logger raises anBackendToManyExceptionsexception. If this isNothingthe logger will discard all exceptions. -
loggerConfigExceptionWait: Number of microseconds to wait after an exception from the backend. If this is 'Nothing' the logger won't wait at all after an exception. -
loggerConfigExitTimeout: Timeout in microseconds for the logger to flush the queue and deliver all remaining log messages on termination. If this isNothingtermination of the logger blogs until all mesages are delivered.
-
-
new
LoggerExceptiontype-
QueueFullExceptionis thrown when the queue is full and the logger policy is to throw exceptions on a full queue. -
BackendTerminatedExceptioncan be thrown by a backend to force the logger immediately. -
BackendToManyExceptionsis thrown when the backend is throwing some unexpected exception more than listloggerConfigExceptionLimittimes.
-
-
-
Issue #12: a test-suite got added to the package. Note that this test-suite takes a relatively long time to run all tests. In particular this an cause timeouts with travis-ci.
-
Issue #14: the command line option for setting the log-level got fixed to be spelled
--log-level(instead of--loglevel). -
Issue #22: added timestamp to log messages.
-
Replaced usage of
IntbyNaturalwhere adequate. -
Issue #6: use
TBMChanas internal queue implementation until a new version of stm is released with a fix forTQueue.
0.1.1
- Added
MonadLogIOfor loggers that allow to extract a log function of typeLogFunctionIO.
0.1
-
Added
localScopefunction toMonadLogand and implementedwithLabelbased on it. -
Added functions
popLabelandclearScope. These are useful when setting log-labels for bracket style functions. -
Remove overlapping
MonadLoginstances. -
Lift
MonadTraceinstances intoLoggerCtxT.
0.0.1
First public release