Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
TermLogOutput Class Reference

#include <terminal_chat_console.h>

+ Inheritance diagram for TermLogOutput:
+ Collaboration diagram for TermLogOutput:

Public Member Functions

void logRaw (LogLevel lev, std::string_view line)
 
virtual void log (LogLevel lev, const std::string &combined, const std::string &time, const std::string &thread_name, std::string_view payload_text)
 

Public Attributes

MutexedQueue< std::pair< LogLevel, std::string > > queue
 

Member Function Documentation

◆ log()

virtual void TermLogOutput::log ( LogLevel lev,
const std::string & combined,
const std::string & time,
const std::string & thread_name,
std::string_view payload_text )
inlinevirtual

Implements ILogOutput.

References MutexedQueue< T >::push_back(), and queue.

+ Here is the call graph for this function:

◆ logRaw()

void TermLogOutput::logRaw ( LogLevel lev,
std::string_view line )
inlinevirtual

Implements ILogOutput.

References MutexedQueue< T >::push_back(), and queue.

+ Here is the call graph for this function:

Member Data Documentation

◆ queue

MutexedQueue<std::pair<LogLevel, std::string> > TermLogOutput::queue

Referenced by log(), and logRaw().


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