preCICE
v3.1.2
Loading...
Searching...
No Matches
src
logging
config
LogConfiguration.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
string
>
4
#include "
logging/LogConfiguration.hpp
"
5
#include "
logging/Logger.hpp
"
6
#include "
xml/XMLTag.hpp
"
7
8
namespace
precice
{
9
namespace
config {
10
12
class
LogConfiguration
:
public
xml::XMLTag::Listener
{
13
public
:
14
LogConfiguration
(
xml::XMLTag
&parent);
15
16
virtual
void
xmlTagCallback
(
const
xml::ConfigurationContext
&context,
xml::XMLTag
&tag);
17
18
virtual
void
xmlEndTagCallback
(
const
xml::ConfigurationContext
&context,
xml::XMLTag
&tag);
19
20
private
:
21
precice::logging::Logger
_log
{
"logging::config::LogConfiguration"
};
22
23
precice::logging::LoggingConfiguration
_logconfig
;
24
};
25
26
}
// namespace config
27
}
// namespace precice
LogConfiguration.hpp
Logger.hpp
XMLTag.hpp
precice::config::LogConfiguration
Configures the log config file to use.
Definition
LogConfiguration.hpp:12
precice::config::LogConfiguration::_log
precice::logging::Logger _log
Definition
LogConfiguration.hpp:21
precice::config::LogConfiguration::_logconfig
precice::logging::LoggingConfiguration _logconfig
Definition
LogConfiguration.hpp:23
precice::config::LogConfiguration::xmlEndTagCallback
virtual void xmlEndTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &tag)
Callback at end of XML tag and at end of subtag.
Definition
LogConfiguration.cpp:75
precice::config::LogConfiguration::xmlTagCallback
virtual void xmlTagCallback(const xml::ConfigurationContext &context, xml::XMLTag &tag)
Callback at begin of XML tag.
Definition
LogConfiguration.cpp:58
precice::config::LogConfiguration::LogConfiguration
LogConfiguration(xml::XMLTag &parent)
Definition
LogConfiguration.cpp:8
precice::logging::Logger
This class provides a lightweight logger.
Definition
Logger.hpp:16
precice::xml::XMLTag
Represents an XML tag to be configured automatically.
Definition
XMLTag.hpp:31
precice
Main namespace of the precice library.
Definition
Acceleration.cpp:5
string
precice::xml::ConfigurationContext
Tightly coupled to the parameters of Participant()
Definition
XMLTag.hpp:24
precice::xml::XMLTag::Listener
Callback interface for configuration classes using XMLTag.
Definition
XMLTag.hpp:43
std::vector< BackendConfiguration >