MicroModelicaCCompiler  4.5.3
MicroModelica::Util::Logger Class Reference

#include <logger.hpp>

Public Member Functions

 ~Logger ()
 
void setFile (std::string file_name)
 
std::string getLoggerFile () const
 
std::string getLogsPath () const
 

Static Public Member Functions

static Loggerinstance ()
 

Public Attributes

std::ofstream log
 

Protected Attributes

std::string _log_file
 
std::string _logs_path
 

Private Member Functions

 Logger ()
 

Detailed Description

Definition at line 65 of file logger.hpp.

Constructor & Destructor Documentation

◆ ~Logger()

MicroModelica::Util::Logger::~Logger ( )

Definition at line 30 of file logger.cpp.

References log.

◆ Logger()

MicroModelica::Util::Logger::Logger ( )
private

Definition at line 28 of file logger.cpp.

Member Function Documentation

◆ getLoggerFile()

std::string MicroModelica::Util::Logger::getLoggerFile ( ) const

Definition at line 41 of file logger.cpp.

References _log_file.

◆ getLogsPath()

std::string MicroModelica::Util::Logger::getLogsPath ( ) const

Definition at line 43 of file logger.cpp.

References _logs_path.

◆ instance()

static Logger& MicroModelica::Util::Logger::instance ( )
inlinestatic

Definition at line 67 of file logger.hpp.

◆ setFile()

void MicroModelica::Util::Logger::setFile ( std::string  file_name)

Member Data Documentation

◆ _log_file

std::string MicroModelica::Util::Logger::_log_file
protected

Definition at line 82 of file logger.hpp.

Referenced by getLoggerFile(), and setFile().

◆ _logs_path

std::string MicroModelica::Util::Logger::_logs_path
protected

Definition at line 83 of file logger.hpp.

Referenced by getLogsPath(), and setFile().

◆ log

std::ofstream MicroModelica::Util::Logger::log

Definition at line 79 of file logger.hpp.

Referenced by setFile(), and ~Logger().


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