Minetest 5.10.0-dev
 
Loading...
Searching...
No Matches
LevelTarget Class Reference
+ Inheritance diagram for LevelTarget:
+ Collaboration diagram for LevelTarget:

Public Member Functions

 LevelTarget (Logger &logger, LogLevel level, bool raw=false)
 
virtual bool hasOutput () override
 
virtual void log (std::string_view buf) override
 

Private Attributes

Loggerm_logger
 
LogLevel m_level
 
bool m_raw
 

Constructor & Destructor Documentation

◆ LevelTarget()

LevelTarget::LevelTarget ( Logger & logger,
LogLevel level,
bool raw = false )
inline

Member Function Documentation

◆ hasOutput()

virtual bool LevelTarget::hasOutput ( )
inlineoverridevirtual

Implements LogTarget.

References Logger::hasOutput(), m_level, and m_logger.

+ Here is the call graph for this function:

◆ log()

virtual void LevelTarget::log ( std::string_view buf)
inlineoverridevirtual

Implements LogTarget.

References Logger::log(), Logger::logRaw(), m_level, m_logger, and m_raw.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_level

LogLevel LevelTarget::m_level
private

Referenced by hasOutput(), and log().

◆ m_logger

Logger& LevelTarget::m_logger
private

Referenced by hasOutput(), and log().

◆ m_raw

bool LevelTarget::m_raw
private

Referenced by log().


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