preCICE
v3.2.0
Loading...
Searching...
No Matches
src
logging
Tracer.cpp
Go to the documentation of this file.
1
#include <
string
>
2
#include <
utility
>
3
4
#include "
logging/Tracer.hpp
"
5
6
namespace
precice::logging
{
7
8
Tracer::Tracer
(
9
Logger
&log,
10
LogLocation
loc)
11
:
_log
(log),
12
_loc
(
std
::move(loc))
13
{
14
}
15
16
Tracer::~Tracer
()
17
{
18
_log
.trace(
_loc
,
std::string
{
"Leaving "
}.
append
(
_loc
.func));
19
}
20
21
}
// namespace precice::logging
Tracer.hpp
std::string::append
T append(T... args)
std::string
precice::logging::Logger
This class provides a lightweight logger.
Definition
Logger.hpp:17
precice::logging::Tracer::_log
Logger & _log
Definition
Tracer.hpp:16
precice::logging::Tracer::_loc
LogLocation _loc
Definition
Tracer.hpp:18
precice::logging::Tracer::Tracer
Tracer(Logger &log, LogLocation loc)
Definition
Tracer.cpp:8
precice::logging::Tracer::~Tracer
~Tracer()
Definition
Tracer.cpp:16
precice::logging
contains the logging framework.
Definition
LogConfiguration.cpp:6
std
STL namespace.
string
precice::logging::LogLocation
Struct used to capture the original location of a log request.
Definition
Logger.hpp:10
utility