Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data Logger = Logger {
- logMessage :: LogLevel -> Builder -> IO ()
- logRequest :: ByteString -> IO ()
- logResponse :: ByteString -> IO ()
- data LogLevel
- nullLogger :: Logger
- stdoutLogger :: LogLevel -> Logger
- logDebug :: Logger -> Builder -> IO ()
- logInfo :: Logger -> Builder -> IO ()
- logWarn :: Logger -> Builder -> IO ()
- logError :: Logger -> Builder -> IO ()
- module Data.ByteString.Builder
Documentation
A Logger
provides functions for logging textual messages as well as
binary CQL protocol requests and responses emitted by the client.
Logger | |
|
Log levels used by the client.
LogDebug | Verbose debug information that should not be enabled in production environments. |
LogInfo | General information concerning client and cluster state. |
LogWarn | Warnings of potential problems that should be investigated. |
LogError | Errors that should be investigated and monitored. |
nullLogger :: Logger Source #
A logger that discards all log messages.
stdoutLogger :: LogLevel -> Logger Source #
A logger that writes all log messages to stdout, discarding log messages whose level is less than the given level. Requests and responses are logged on debug level, formatted in hexadecimal blocks.
module Data.ByteString.Builder