Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
setLogLevelWith :: forall msg r a. Member (DataLog msg) r => (msg -> Severity) -> Maybe Severity -> Sem r a -> Sem r a Source #
Set the minimum severity for messages to be handled, with Nothing
meaning no messages are logged.
This can be used with arbitrary message types, using the ex
argument to extract the severity from the message.