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

#include <log_internal.h>

+ Inheritance diagram for StreamLogOutput:
+ Collaboration diagram for StreamLogOutput:

Public Member Functions

 StreamLogOutput (std::ostream &stream)
 
void logRaw (LogLevel lev, std::string_view line)
 
- Public Member Functions inherited from ICombinedLogOutput
void log (LogLevel lev, const std::string &combined, const std::string &time, const std::string &thread_name, std::string_view payload_text)
 

Private Attributes

std::ostream & m_stream
 
bool is_tty = false
 

Constructor & Destructor Documentation

◆ StreamLogOutput()

StreamLogOutput::StreamLogOutput ( std::ostream & stream)

References is_tty.

Member Function Documentation

◆ logRaw()

void StreamLogOutput::logRaw ( LogLevel lev,
std::string_view line )
virtual

Member Data Documentation

◆ is_tty

bool StreamLogOutput::is_tty = false
private

Referenced by StreamLogOutput(), and logRaw().

◆ m_stream

std::ostream& StreamLogOutput::m_stream
private

Referenced by logRaw().


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