The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

ChannelLogStream Class Reference

Inheritance diagram for ChannelLogStream:

Inheritance graph
[legend]
Collaboration diagram for ChannelLogStream:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ChannelLogStream (InspIRCd *Instance, int loglevel, const std::string &chan)
virtual void OnLog (int loglevel, const std::string &type, const std::string &msg)
 Called when there is stuff to log for this particular logstream.

Private Attributes

std::string channel

Detailed Description

Definition at line 16 of file m_chanlog.cpp.


Constructor & Destructor Documentation

ChannelLogStream::ChannelLogStream InspIRCd Instance,
int  loglevel,
const std::string chan
[inline]
 

Definition at line 22 of file m_chanlog.cpp.


Member Function Documentation

virtual void ChannelLogStream::OnLog int  loglevel,
const std::string type,
const std::string msg
[inline, virtual]
 

Called when there is stuff to log for this particular logstream.

The derived class may take no action with it, or do what it wants with the output, basically. loglevel and type are primarily for informational purposes (the level and type of the event triggered) and msg is, of course, the actual message to log.

Implements LogStream.

Definition at line 26 of file m_chanlog.cpp.

References channel, InspIRCd::Config, InspIRCd::FindChan(), LogStream::loglvl, MAXBUF, Channel::name, InspIRCd::PI, ProtocolInterface::SendChannelPrivmsg(), LogStream::ServerInstance, ServerConfig::ServerName, and Channel::WriteChannelWithServ().


Member Data Documentation

std::string ChannelLogStream::channel [private]
 

Definition at line 19 of file m_chanlog.cpp.

Referenced by OnLog().


The documentation for this class was generated from the following file: