Helios++
Helios software for LiDAR simulations
logging::full_logger Class Reference

Class representing a logger capable of writing to files and, at the same time, to standard out. More...

#include <logging.hpp>

Inheritance diagram for logging::full_logger:
Collaboration diagram for logging::full_logger:

Public Member Functions

 full_logger (const logging_config_t &config)
 Full logger constructor. More...
 
void log (const std::string &message) override
 
- Public Member Functions inherited from logging::file_logger
 file_logger (const logging_config_t &config)
 File logger constructor. More...
 
virtual void log (const std::string &message, const log_level level)
 
- Public Member Functions inherited from logging::logger
 logger (const logging_config_t &config)
 Logger constructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from logging::file_logger
void reopen ()
 Reopen the log file in a thread-safe fashion.
 
- Protected Attributes inherited from logging::file_logger
std::string file_name
 
std::ofstream file
 
std::chrono::seconds reopen_interval
 
std::chrono::system_clock::time_point last_reopen
 
- Protected Attributes inherited from logging::logger
std::mutex lock
 Mutex to handle concurrent log writes.
 

Detailed Description

Class representing a logger capable of writing to files and, at the same time, to standard out.

Constructor & Destructor Documentation

◆ full_logger()

logging::full_logger::full_logger ( const logging_config_t &  config)
inlineexplicit

Full logger constructor.

Parameters
config

Member Function Documentation

◆ log()

void logging::full_logger::log ( const std::string &  message)
inlineoverridevirtual

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