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

Class representing a logger capable of writing to standard out stream. More...

#include <logging.hpp>

Inheritance diagram for logging::std_out_logger:
Collaboration diagram for logging::std_out_logger:

Public Member Functions

 std_out_logger (const logging_config_t &config)
 Standard out logger constructor. More...
 
virtual void log (const std::string &message, const log_level level)
 
virtual void log (const std::string &message)
 
- Public Member Functions inherited from logging::logger
 logger (const logging_config_t &config)
 Logger constructor. More...
 

Protected Attributes

const std::unordered_map< log_level, std::string, enum_hasherlevels
 Map of logging levels. More...
 
- 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 standard out stream.

Constructor & Destructor Documentation

◆ std_out_logger()

logging::std_out_logger::std_out_logger ( const logging_config_t &  config)
inline

Standard out logger constructor.

Parameters
configLogger configuration which can be used to specify either colored or uncolored mode

Member Function Documentation

◆ log() [1/2]

virtual void logging::std_out_logger::log ( const std::string &  message,
const log_level  level 
)
inlinevirtual

◆ log() [2/2]

virtual void logging::std_out_logger::log ( const std::string &  message)
inlinevirtual
See also
logger::log(const std::string&)

Reimplemented from logging::logger.

Member Data Documentation

◆ levels

const std::unordered_map<log_level, std::string, enum_hasher> logging::std_out_logger::levels
protected

Map of logging levels.

See also
logging::uncolored
logging::colored

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