glirc-2.31: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Log

Description

This module provides provides logging functionality for IRC traffic.

Synopsis

Documentation

data LogLine Source #

Log entry queued in client to be written by the event loop

Constructors

LogLine 

Fields

writeLogLine Source #

Arguments

:: LogLine

log line

-> IO () 

Write the given log entry to the filesystem.

ignoreProblems :: IO () -> IO () Source #

Ignore all IOErrors

renderLogLine Source #

Arguments

:: ClientMessage

message

-> FilePath

log directory

-> Identifier

target

-> Maybe LogLine 

Construct a LogLine for the given ClientMessage when appropriate. Only chat messages result in a log line.