riak-0.3.1.0: A Haskell client for the Riak decentralized data store

Portabilityportable
Stabilityexperimental
MaintainerBryan O'Sullivan <bos@mailrank.com>

Network.Riak.Debug

Description

Support for debug logging. The code in this package only works if the package was built with the -fdebug flag. Otherwise, they are all no-ops.

Synopsis

Documentation

level :: IntSource

The current debugging level. This is established once by reading the RIAK_DEBUG environment variable.

setHandle :: Handle -> IO ()Source

Set the Handle to log to (stderr is the default).

showM :: (Show a, Tagged a) => a -> StringSource

Show a Tagged value. Show the entire value if the debug level is above 1, just the tag otherwise.