preCICE
v3.2.0
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
Variables
_
a
b
c
d
e
f
h
i
m
n
p
r
s
t
Typedefs
b
d
e
g
l
m
p
r
s
t
u
v
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
~
Variables
_
a
b
c
d
e
f
g
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Typedefs
a
b
c
d
e
f
i
k
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
c
d
e
i
l
m
n
o
r
s
u
v
w
Related Symbols
Files
File List
File Members
All
_
a
b
c
d
e
g
i
j
m
n
o
p
r
s
t
v
Functions
a
b
c
g
m
p
r
s
t
v
Variables
Typedefs
Macros
b
d
m
n
p
t
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
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
}
8
Tracer::Tracer
( {
…
}
15
16
Tracer::~Tracer
()
17
{
18
_log
.
trace
(
_loc
,
std::string
{
"Leaving "
}.
append
(
_loc
.
func
));
19
}
16
Tracer::~Tracer
() {
…
}
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::Logger::trace
void trace(LogLocation loc, std::string_view mess) noexcept
Definition
Logger.cpp:189
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.
_log
static precice::logging::Logger _log("precicec")
string
precice::logging::LogLocation
Struct used to capture the original location of a log request.
Definition
Logger.hpp:10
precice::logging::LogLocation::func
const char * func
Definition
Logger.hpp:13
utility