Cantera  3.1.0a1
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 
9 #include "cantera/base/logger.h"
10 
11 namespace Cantera {
12 //! Logger that doesn't exit when an error is thrown.
13 //! @ingroup logGroup
14 class NoExitLogger : public Logger {
15 public:
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.
Definition: NoExitLogger.h:14
void error(const string &msg) override
Write an error message and quit.
Definition: NoExitLogger.h:18
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