56 virtual void write(
const string& msg) {
66 std::cout << std::endl;
75 virtual void warn(
const string& warning,
const string& msg) {
76 std::clog << warning <<
"Warning: " << msg << std::endl;
90 virtual void error(
const string& msg) {
91 std::cerr << msg << std::endl;
Base class for 'loggers' that write text messages to log files.
virtual void writeendl()
Write an end of line character and flush output.
Logger()
Constructor - empty.
virtual void write(const string &msg)
Write a log message.
virtual ~Logger()
Destructor - empty.
virtual void error(const string &msg)
Write an error message and quit.
virtual void warn(const string &warning, const string &msg)
Write a warning message.
This file contains definitions of constants, types and terms that are used in internal routines and a...
Namespace for the Cantera kernel.