Module LoggingMDC
This module is undocumented. This is a list of its definitions.
get :: String -> <Proc> Maybe String
The value of the given key in the diagnostic context of the current thread, or Nothing if it is not set.
put :: String -> String -> <Proc> ()
Sets the given key to the given value in the diagnostic context of the current thread.
putOrRemove :: String -> Maybe String -> <Proc> ()
Sets the given key to the given value, or removes the key if the value is Nothing.
remove :: String -> <Proc> ()
Removes the given key from the diagnostic context of the current thread.
withContext :: String -> String -> <b> a -> <b,Proc> a
withContext key value expression evaluates expression with the given key
set to the given value in the diagnostic context, and restores the previous
value of the key afterwards.
withContextFn :: String -> String -> (() -> <b> a) -> <b,Proc> a
Like withContext, but takes the expression as a function that is applied to ().
|