SObjectizer  5.8
Loading...
Searching...
No Matches
so_5::stderr_logger_t Class Reference

A standard implementation of error_logger interface. More...

Inheritance diagram for so_5::stderr_logger_t:
so_5::error_logger_t

Public Member Functions

 stderr_logger_t ()
 
virtual void log (const char *file, unsigned int line, const std::string &message) override
 A method for logging message.
 
- Public Member Functions inherited from so_5::error_logger_t
 error_logger_t ()=default
 
virtual ~error_logger_t () noexcept=default
 

Detailed Description

A standard implementation of error_logger interface.

Since
v.5.5.0

Definition at line 47 of file error_logger.cpp.

Constructor & Destructor Documentation

◆ stderr_logger_t()

so_5::stderr_logger_t::stderr_logger_t ( )
inline

Definition at line 50 of file error_logger.cpp.

Member Function Documentation

◆ log()

void so_5::stderr_logger_t::log ( const char * file_name,
unsigned int line,
const std::string & message )
overridevirtual

A method for logging message.

Note
This method is not noexcept. It means that logger can throws, but in most cases logger is called in cases when the application is prepared to be aborted due to some fatal errors. In those cases an exception from log() will just terminate the application a bit earlier. In other cases exceptions thrown by log() will be ignored.
Parameters
file_nameSource file name.
lineLine number inside source file.
messageText to log.

Implements so_5::error_logger_t.

Definition at line 61 of file error_logger.cpp.


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