Maria GDK 5.0.0.738
Documentation of native code in develop branch
Loading...
Searching...
No Matches
STK::FileLogger Class Reference

#include <StkLogger.h>

Inheritance diagram for STK::FileLogger:
STK::ILogger

Public Member Functions

 FileLogger (const std::string &filename="", int log_level=1, bool append=true)
 
bool open (const std::string &filename, bool append=true)
 
void setLogLevel (int log_level)
 
int getLogLevel () const
 
void close ()
 
FILE * getFileHandle () const
 
void logPuts (int level, const std::string &module, const char *str)
 
virtual int getLogLevel () const =0
 
virtual void logPuts (int level, const std::string &module, const char *str)=0
 

Protected Attributes

std::mutex mutex_
 
FILE * file_
 
int log_level_
 

Detailed Description

StkLogger - Thread-safe logger mechanism This class provides a global logging mechanism which can be used throughout the Silent Wings code

Member Function Documentation

◆ getLogLevel()

int FileLogger::getLogLevel ( ) const
virtual

Implements STK::ILogger.

◆ logPuts()

void FileLogger::logPuts ( int  level,
const std::string &  module,
const char *  str 
)
virtual

Implements STK::ILogger.


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