OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <Base.hpp>

Inheritance diagram for LogFacility:
[legend]

Public Member Functions

virtual ~LogFacility ()
 
virtual void log (int severity, const std::string &s)=0
 
virtual void log (LogSeverity severity, const std::string &s)
 

Detailed Description

Base class to create new loggers.

Definition at line 68 of file Base.hpp.

Constructor & Destructor Documentation

◆ ~LogFacility()

virtual ~LogFacility ( )
inlinevirtual

Empty, virtual destructor.

Definition at line 71 of file Base.hpp.

Member Function Documentation

◆ log() [1/2]

virtual void log ( int  severity,
const std::string s 
)
pure virtual

Print a message to this log facility, with a given severity.

Parameters
severitynumeric severity level
smessage to log

Implemented in FormattedStreamLogger, FileStreamLogger, and FileLogger.

◆ log() [2/2]

virtual void log ( LogSeverity  severity,
const std::string s 
)
inlinevirtual

Wrapper for the above function, converting the LogSeverity enum to its underlying numeric severity. This shouldn't need to be overridden manually.

Parameters
severitynumeric severity level
smessage to log

Definition at line 88 of file Base.hpp.


The documentation for this class was generated from the following file:
  • /gfs-oceanweb/web/ocssw/ocssw_src/include/focs/log/Base.hpp