50 _infoFileStream(infoFileName.c_str()),
51 _warningFileStream(warningFileName.c_str()),
53 _warningStream(nullptr)
63 throw runtime_error(
string(
"FileLogger::Cannot open info stream to file ") +
infoFileName);
76 throw runtime_error(
string(
"FileLogger::Cannot open warning stream to file ") +
warningFileName);
99 _infoStream <<
" (at " << file <<
":" << line <<
" in " << func <<
" )" << endl;
121 _warningStream <<
" (at " << file <<
":" << line <<
" in " << func <<
" )" << endl;
virtual void finishWarningEntry(const char *file, unsigned line, const char *func)
Finish the entry into the warning channel.
const std::string infoFileName
The logger interface, used to output warnings and informations.
virtual bool hasWarningChannel() const
Return whether this logger provides the warning channel.
virtual bool hasInfoChannel() const
Return whether this logger provides the info channel.
std::ofstream _warningFileStream
std::ostream _warningStream
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 void beginInfoEntry(const char *file, unsigned line, const char *func)
Start a new entry into the info channel.
virtual void beginWarningEntry(const char *file, unsigned line, const char *func)
Start a new entry into the warning channel.
const std::string warningFileName
const M::mapped_type & get(const M &m, const typename M::key_type &k)
std::ofstream _infoFileStream
The superclass of classes that are constructed using generic parameters. This class provides the para...
const bool displayLocation
virtual std::ostream * warningStream()
Return the warning stream, 0 if hasWarningChannel() returns false.
virtual void finishInfoEntry(const char *file, unsigned line, const char *func)
Finish the entry into the info channel.
virtual std::ostream * infoStream()
Return the info stream, 0 if hasInfoChannel() returns false.