cql-io-1.1.1: Cassandra CQL client.

Safe HaskellSafe
LanguageHaskell2010

Database.CQL.IO.Log

Synopsis

Documentation

data Logger Source #

A Logger provides functions for logging textual messages as well as binary CQL protocol requests and responses emitted by the client.

Constructors

Logger 

Fields

data LogLevel Source #

Log levels used by the client.

Constructors

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.