Class for logging error messages. More...
#include <Logger.hxx>
Public Member Functions | |
Logger (const std::string &name) | |
virtual | ~Logger () |
virtual const std::string & | getName () |
virtual void | log (int level, const std::string &message, const char *filename, int line) |
virtual void | error (const std::string &message, const char *filename, int line) |
virtual void | fatal (const std::string &message, const char *filename, int line) |
virtual void | warning (const std::string &message, const char *filename, int line) |
virtual LogRecord * | makeRecord (const std::string &name, int level, const std::string &message, const char *filename, int line) |
virtual void | handle (LogRecord *record) |
virtual void | reset () |
virtual std::string | getStr () |
virtual bool | isEmpty () |
virtual bool | hasErrors () |
Protected Attributes | |
std::string | _name |
std::vector< LogRecord * > | _records |
Class for logging error messages.
Definition at line 37 of file Logger.hxx.
Logger::Logger | ( | const std::string & | name | ) |
Definition at line 30 of file Logger.cxx.
|
virtual |
|
virtual |
Definition at line 50 of file Logger.cxx.
References YACS::ENGINE::LogRecord::ERROR, and log().
Referenced by YACS::parser::logError().
|
virtual |
Definition at line 55 of file Logger.cxx.
References YACS::ENGINE::LogRecord::FATAL, and log().
Referenced by YACS::YACSLoader::load().
|
virtual |
|
virtual |
Definition at line 85 of file Logger.cxx.
References _records.
Referenced by YACS::ENGINE::ProcCataLoader::loadCata(), YACS::HMI::GenericGui::loadSchema(), main(), YACS::HMI::GenericGui::onImportSchema(), YACS::HMI::GenericGui::onImportSupervSchema(), YACS::HMI::GenericGui::onLoadAndRunSchema(), YACS::HMI::EditionProc::synchronize(), and YACS::HMI::BatchJobsListDialog::userOK().
|
virtual |
|
virtual |
Definition at line 101 of file Logger.cxx.
References _records, PMMLBasicsTestLauncher::ret, and YACS::ENGINE::LogRecord::WARNING.
Referenced by main().
|
virtual |
Definition at line 96 of file Logger.cxx.
References _records.
Referenced by YACS::ENGINE::ProcCataLoader::loadCata(), YACS::HMI::GenericGui::loadSchema(), main(), YACS::HMI::GenericGui::onImportSchema(), YACS::HMI::GenericGui::onImportSupervSchema(), YACS::HMI::GenericGui::onLoadAndRunSchema(), YACS::HMI::EditionProc::synchronize(), and YACS::HMI::BatchJobsListDialog::userOK().
|
virtual |
Definition at line 44 of file Logger.cxx.
References getName(), handle(), and makeRecord().
Referenced by error(), fatal(), and warning().
|
virtual |
Definition at line 65 of file Logger.cxx.
Referenced by log().
|
virtual |
Definition at line 75 of file Logger.cxx.
References _records.
Referenced by gui.graph.grid::findPath(), and ~Logger().
|
virtual |
Definition at line 60 of file Logger.cxx.
References log(), and YACS::ENGINE::LogRecord::WARNING.
|
protected |
Definition at line 54 of file Logger.hxx.
Referenced by getName().
|
protected |
Definition at line 55 of file Logger.hxx.
Referenced by getStr(), handle(), hasErrors(), isEmpty(), and reset().