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

#include <filelogger.h>

Inheritance diagram for FileLogStream:
LogStream classbase

Public Member Functions

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

Additional Inherited Members

- Static Public Attributes inherited from LogStream
static const char LogHeader []
 
- Protected Attributes inherited from LogStream
LogLevel loglvl
 

Detailed Description

A logging class which logs to a streamed file.

Member Function Documentation

◆ OnLog()

void FileLogStream::OnLog ( LogLevel  loglevel,
const std::string &  type,
const std::string &  msg 
)
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.


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