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