Helios++
Helios software for LiDAR simulations
full_logger Class Reference

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

#include <full_logger.hpp>

Inheritance diagram for full_logger:
Collaboration diagram for 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 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 logger
 logger (const logging_config_t &config)
 Logger constructor. More...
 

Additional Inherited Members

- Protected Member Functions inherited from file_logger
void reopen ()
 Reopen the log file in a thread-safe fashion.
 
- Protected Attributes inherited from file_logger
std::string file_name
 Name of output file.
 
std::ofstream file
 Output file stream.
 
std::chrono::seconds reopen_interval
 Reopen interval in seconds.
 
std::chrono::system_clock::time_point last_reopen
 Time point when last reopen took place.
 
- Protected Attributes inherited from 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()

full_logger::full_logger ( const logging_config_t &  config)
inlineexplicit

Full logger constructor.

Parameters
config

Member Function Documentation

◆ log()

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

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