InspIRCd  2.0
Public Member Functions | List of all members
FileLogStream Class Reference

#include <filelogger.h>

Inheritance diagram for FileLogStream:
LogStream classbase

Public Member Functions

 FileLogStream (int loglevel, FileWriter *fw)
virtual void OnLog (int loglevel, const std::string &type, const std::string &msg)
- Public Member Functions inherited from LogStream
 LogStream (int loglevel)
void ChangeLevel (int lvl)
- Public Member Functions inherited from classbase
virtual CullResult cull ()

Additional Inherited Members

- Protected Attributes inherited from LogStream
int loglvl

Detailed Description

A logging class which logs to a streamed file.

Member Function Documentation

◆ OnLog()

void FileLogStream::OnLog ( int  loglevel,
const std::string &  type,
const std::string &  msg 

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.

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