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

#include <filelogger.h>

Inheritance diagram for FileLogStream:
LogStream Cullable insp::uncopiable

Public Member Functions

 FileLogStream (LogLevel loglevel, FileWriter *fw)
void OnLog (LogLevel loglevel, const std::string &type, const std::string &msg) override
- Public Member Functions inherited from LogStream
 LogStream (LogLevel loglevel)
void ChangeLevel (LogLevel lvl)
- Public Member Functions inherited from Cullable
virtual ~Cullable ()
virtual Result Cull ()

Additional Inherited Members

- Static Public Attributes inherited from LogStream
static const char LogHeader []
- Protected Member Functions inherited from Cullable
 Cullable ()
- 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 

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: