log package:co-log
Logs the message with given severity sev.
Action that prints
ByteString to
Handle. This action
does not flush the output buffer. If buffering mode is block
buffering, the effect of this action can be delayed.
Action that prints
ByteString to stderr. This action does not
flush the output buffer. If buffering mode is block buffering, the
effect of this action can be delayed.
Action that prints
ByteString to stdout. This action does not
flush the output buffer. If buffering mode is block buffering, the
effect of this action can be delayed.
Action that prints
Text to
Handle. This action does not
flush the output buffer. If buffering mode is block buffering, the
effect of this action can be delayed.
Action that prints
Text to stderr. This action does not flush
the output buffer. If buffering mode is block buffering, the effect of
this action can be delayed.
Action that prints
Text to stdout. This action does not flush
the output buffer. If buffering mode is block buffering, the effect of
this action can be delayed.
Logs the message with the
Debug severity.
Logs the message with the
Error severity.
Logs the message with the
Info severity.
Logs the message with the
Warning severity.
Perform logging action with given message
msg. This function
works for monads that have access to
LogAction.
You can use this function like this:
example :: WithLog env String m => m ()
example = do
logMsg "First message..."
logMsg "Second message..."
LogAction that prints
msg by appending it to the end
of the sequence.
Composable Contravariant Comonadic Logging Library
The default implementation of logging based on
co-log-core.
The ideas behind this package are described in the following blog
post:
This package contains mtl implementation of composable,
contravariant and comonadic logging based on co-log-core.
Type alias for constraint for:
- Monad m have access to environment env.
- Environment env contains LogAction that can log
messages of type msg.
- Function call stack.
If you use this constraint, function call stack will be propagated and
you will have access to code lines that log messages.