OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022

#include <FormattedFile.hpp>

Inheritance diagram for FormattedFileLogger:
[legend]
Collaboration diagram for FormattedFileLogger:
[legend]

Public Member Functions

 FormattedFileLogger (const std::string &filename, const std::string &format, map_of_functions named_functions={}, vector_of_functions numbered_functions={})
 
 FormattedFileLogger (const std::string &filename, std::ios_base::openmode mode, const std::string &format, map_of_functions named_functions={}, vector_of_functions numbered_functions={})
 
 ~FormattedFileLogger () override
 
- Public Member Functions inherited from FormattedStreamLogger
 FormattedStreamLogger (const std::string &format, map_of_functions named_functions={}, vector_of_functions numbered_functions={}, std::ostream &stream=std::cout)
 
 FormattedStreamLogger (const std::string &format, std::ostream &stream)
 
 ~FormattedStreamLogger () override
 
void log (int severity, const std::string &s) override
 
- Public Member Functions inherited from LogFacility
virtual ~LogFacility ()
 
virtual void log (LogSeverity severity, const std::string &s)
 

Detailed Description

Log facility for printing to a file, allowing text to be generated around messages.

For the detailed description of the format parameter, see the documentation for focs::FormattedStreamLogger.

Definition at line 20 of file FormattedFile.hpp.

Constructor & Destructor Documentation

◆ FormattedFileLogger() [1/2]

FormattedFileLogger ( const std::string filename,
const std::string format,
map_of_functions  named_functions = {},
vector_of_functions  numbered_functions = {} 
)
inline

Create a new log facility without external function calls.

Parameters
filenamestring with which to format messages
formatstring with which to format messages
named_functionsmap of functions referred to by the format string
numbered_functionsvector of functions referred to by the format string

Definition at line 36 of file FormattedFile.hpp.

◆ FormattedFileLogger() [2/2]

FormattedFileLogger ( const std::string filename,
std::ios_base::openmode  mode,
const std::string format,
map_of_functions  named_functions = {},
vector_of_functions  numbered_functions = {} 
)
inline

Create a new log facility without external function calls.

Parameters
filenamestring with which to format messages
modefile mode to use when opening the file
formatstring with which to format messages
named_functionsmap of functions referred to by the format string
numbered_functionsvector of functions referred to by the format string

Definition at line 47 of file FormattedFile.hpp.

◆ ~FormattedFileLogger()

~FormattedFileLogger ( )
inlineoverride

Definition at line 50 of file FormattedFile.hpp.


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