Portability | GHC only (STM, GHC.Conc for unsafeIOToSTM) |
---|---|
Stability | experimental |
Maintainer | Eugene Kirpichov <ekirpichov@gmail.com>, Dmitry Astapov <dastapov@gmail.com> |
This module provides a binding to the greg distributed logger, which provides a high-precision global time axis and is very performant.
See project home page at http://code.google.com/p/greg for an explanation of how to use the server, the features, motivation and design.
- data Configuration = Configuration {}
- logMessage :: String -> IO ()
- withGregDo :: Configuration -> IO () -> IO ()
- defaultConfiguration :: Configuration
Documentation
data Configuration Source
Client configuration.
You probably only need to change server
.
Configuration | |
|
logMessage :: String -> IO ()Source
Log a message. The message will show up in server's output annotated with a global timestamp (client's clock offset does not matter).
withGregDo :: Configuration -> IO () -> IO ()Source
Perform an IO action with logging (will wait for all messages to flush).
defaultConfiguration :: ConfigurationSource
The default configuration, suitable for most needs.