36 #ifndef __POINTMATCHER_LOGGER_H 37 #define __POINTMATCHER_LOGGER_H 48 return "Does not log anything.";
59 return "Log using std::stream.";
64 {
"infoFileName",
"name of the file to output infos to, or an empty string to output infos to the standard output stream",
""},
65 {
"warningFileName",
"name of the file to output warnings to, or an empty string to output warnings to the standard error stream",
""},
66 {
"displayLocation",
"display the location of message in source code",
"0"}
93 #endif // __POINTMATCHER_LOGGER_H const std::string infoFileName
static const ParametersDoc availableParameters()
The logger interface, used to output warnings and informations.
virtual void finishInfoEntry(const char *file, unsigned line, const char *func)
Finish the entry into the info channel.
std::ofstream _warningFileStream
std::ostream _warningStream
virtual void beginInfoEntry(const char *file, unsigned line, const char *func)
Start a new entry into the info channel.
std::map< std::string, Parameter > Parameters
Parameters stored as a map of string->string.
Functions and classes that are not dependant on scalar type are defined in this namespace.
virtual std::ostream * warningStream()
Return the warning stream, 0 if hasWarningChannel() returns false.
virtual std::ostream * infoStream()
Return the info stream, 0 if hasInfoChannel() returns false.
const std::string warningFileName
std::ofstream _infoFileStream
virtual bool hasWarningChannel() const
Return whether this logger provides the warning channel.
std::vector< ParameterDoc > ParametersDoc
The documentation of all parameters.
static const std::string description()
const bool displayLocation
virtual void finishWarningEntry(const char *file, unsigned line, const char *func)
Finish the entry into the warning channel.
virtual void beginWarningEntry(const char *file, unsigned line, const char *func)
Start a new entry into the warning channel.
virtual bool hasInfoChannel() const
Return whether this logger provides the info channel.
static const std::string description()