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

#include <log_internal.h>

+ Inheritance diagram for FileLogOutput:
+ Collaboration diagram for FileLogOutput:

Public Member Functions

void setFile (const std::string &filename, s64 file_size_max)
 
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::ofstream m_stream
 

Member Function Documentation

◆ logRaw()

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

Implements ILogOutput.

References m_stream.

◆ setFile()

void FileLogOutput::setFile ( const std::string & filename,
s64 file_size_max )

References actionstream, fs::DeleteSingleFileOrEmptyDirectory(), m_stream, fs::OpenStream(), and fs::Rename().

Referenced by init_log_streams().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_stream

std::ofstream FileLogOutput::m_stream
private

Referenced by logRaw(), and setFile().


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