 | snap-server-0.2.16.2: A fast, iteratee-based, epoll-enabled web server for the Snap Framework | Contents | Index |
|
|
|
|
| Synopsis |
|
|
|
| Documentation |
|
| data Logger |
| Holds the state for a logger.
|
|
|
| timestampedLogEntry :: ByteString -> IO ByteString |
| Prepares a log message with the time prepended.
|
|
| combinedLogEntry |
|
|
| newLogger :: FilePath -> IO Logger |
| Creates a new logger, logging to the given file. If the file argument is
"-", then log to stdout; if it's "stderr" then we log to stderr,
otherwise we log to a regular file in append mode. The file is closed and
re-opened every 15 minutes to facilitate external log rotation.
|
|
| logMsg :: Logger -> ByteString -> IO () |
| Sends out a log message verbatim with a newline appended. Note:
if you want a fancy log message you'll have to format it yourself
(or use combinedLogEntry).
|
|
| stopLogger :: Logger -> IO () |
| Kills a logger thread, causing any unwritten contents to be
flushed out to disk
|
|
| Produced by Haddock version 2.7.2 |