clogparse-0.2: Parse IRC logs such as the #haskell logs on tunes.org

Data.IRC.CLog.Parse

Contents

Description

Parse events from clog output, such as the files at http://tunes.org/~nef/logs/haskell/.

IRC has no single standard character encoding. This module decodes messages as UTF-8 following common practice on Freenode.

Synopsis

Parsing log files

parseLog :: Config -> FilePath -> IO [EventAt]Source

Parse a log file.

The file name (after any directory) is significant. It is used to set the date for timestamps. It should have the form YY.MM.DD, as do the files on tunes.org.

Configuring the parser

data Config Source

Configuring the parser.

Constructors

Config 

Fields

timeZone :: String

Timestamp time zone; an Olson time zone name.

zoneInfo :: FilePath

Directory for time zone files; $TZDIR overrides.

Instances

haskellConfig :: ConfigSource

Config value suitable for parsing #haskell logs on Linux.

Re-export