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

Copyright(c) 2011 MailRank, Inc.
LicenseApache
MaintainerMark Hibberd <mark@hibberd.id.au>, Nathan Hunter <nhunter@janrain.com>
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell98

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 :: Int Source

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

debug Source

Arguments

:: String

Function name.

-> String

Debug message.

-> IO () 

Print a debug message, if debugging is enabled.

debugValues :: Show a => String -> String -> [a] -> IO () Source

Print a debug message, and information about some values. If the debug level is greater than 1, print the values themselves.

setHandle :: Handle -> IO () Source

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

showM :: (Show a, Tagged a) => a -> String Source

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