ReFRACtor
|
This is the implementation of the Logger used for the Full Physics program. More...
#include <fp_logger.h>
Public Types | |
enum | log_level { DEBUG = 4, INFO =3, WARNING =2, ERROR =1, FATAL =0 } |
Public Member Functions | |
FpLogger (int Verbosity_level=LogImp::DEBUG) | |
Constructor. More... | |
virtual | ~FpLogger () |
virtual void | flush (log_level l) |
Flush data to log. More... | |
void | print (std::ostream &Os) |
std::string | print_to_string () const |
Print to string. More... | |
virtual std::ostream * | stream () |
Underlying stream, can be null if no underlying stream. More... | |
template<class T > | |
void | write (log_level l, const T &v) |
void | write (log_level l, const std::string &v) |
Write to a log. More... | |
void | write (log_level l, const char *v) |
Protected Attributes | |
std::ostringstream | os |
This is the implementation of the Logger used for the Full Physics program.
This just writes to stdout or stderr, filtering by the level, and adding in a leading label (e.g., "INFO").
Definition at line 12 of file fp_logger.h.
|
inherited |
|
inline |
Constructor.
Definition at line 18 of file fp_logger.h.
|
inlinevirtual |
Definition at line 20 of file fp_logger.h.
|
virtual |
|
inlineinherited |
|
inlineinherited |
Print to string.
This is primarily useful for SWIG wrappers to this class, e.g. a to_s method in ruby.
Definition at line 31 of file printable.h.
|
inlinevirtual |
Underlying stream, can be null if no underlying stream.
Implements FullPhysics::LogImp.
Definition at line 22 of file fp_logger.h.
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
protectedinherited |