Cantera
Install
User Guide
Examples
Reference
Develop
Community
4.0.0a2
Toggle main menu visibility
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
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
Cantera::Logger::Logger
Logger()
Constructor - empty.
Definition
logger.h:43
Cantera::NoExitLogger::error
void error(const string &msg) override
Write an error message and quit.
Definition
NoExitLogger.h:18
logger.h
Header for Base class for 'loggers' that write text messages to log files (see Logging and class Logg...
Cantera
Namespace for the Cantera kernel.
Definition
AnyMap.cpp:595
include
cantera
base
NoExitLogger.h
Generated by
1.17.0