ocssw
V2022
|
#include <FormattedStream.hpp>
Public Member Functions | |
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 allowing text to be generated around messages.
Format String
If the user message (%s) is omitted, the entire format string is treated as a prefix and the user message is automatically added to the end.
Definition at line 57 of file FormattedStream.hpp.
Constructor & Destructor Documentation
◆ FormattedStreamLogger() [1/2]
|
explicit |
Create a new log facility with the given format, with optional function containers and a specific output stream.
- Parameters
-
format string with which to format messages named_functions map of functions referred to by the format string numbered_functions vector of functions referred to by the format string stream stream to which to print
◆ FormattedStreamLogger() [2/2]
|
inline |
Create a new log facility without external function calls.
- Parameters
-
format string with which to format messages stream stream to which to print
Definition at line 80 of file FormattedStream.hpp.
◆ ~FormattedStreamLogger()
|
override |
Member Function Documentation
◆ log()
|
overridevirtual |
Print a message to this log facility, with a given severity.
- Parameters
-
severity numeric severity level s message to log
Implements LogFacility.
The documentation for this class was generated from the following file:
- /gfs-oceanweb/web/ocssw/ocssw_src/include/focs/log/FormattedStream.hpp