Cantera  3.1.0a1
Loading...
Searching...
No Matches
NoExitLogger.h
Go to the documentation of this file.
1//! @file NoExitLogger.h
2
3// This file is part of Cantera. See License.txt in the top-level directory or
4// at https://cantera.org/license.txt for license and copyright information.
5
6#ifndef NOEXITLOGGER_H
7#define NOEXITLOGGER_H
8
10
11namespace Cantera {
12//! Logger that doesn't exit when an error is thrown.
13//! @ingroup logGroup
14class NoExitLogger : public Logger {
15public:
16 NoExitLogger() {}
17
18 void error(const string& msg) override {
19 std::cerr << msg << std::endl;
20 }
21};
22}
23#endif
Base class for 'loggers' that write text messages to log files.
Definition logger.h:41
Logger that doesn't exit when an error is thrown.
void error(const string &msg) override
Write an error message and quit.
Header for Base class for 'loggers' that write text messages to log files (see Logging and class Logg...
Namespace for the Cantera kernel.
Definition AnyMap.cpp:564