|
preCICE v3.3.0
|
This class provides a lightweight logger. More...
#include <Logger.hpp>
Classes | |
| class | LoggerImpl |
Public Member Functions | |
| Logger (std::string_view module) | |
| Logger (const Logger &other) | |
| Implements a deep copy of the implementation. | |
| Logger (Logger &&other) noexcept | |
| Logger & | operator= (Logger other) |
| ~Logger () | |
| This is required for the std::unique_ptr. | |
| void | swap (Logger &other) noexcept |
Logging operations | |
| void | error (LogLocation loc, std::string_view mess) noexcept |
| void | warning (LogLocation loc, std::string_view mess) noexcept |
| void | info (LogLocation loc, std::string_view mess) noexcept |
| void | debug (LogLocation loc, std::string_view mess) noexcept |
| void | trace (LogLocation loc, std::string_view mess) noexcept |
Private Attributes | |
| std::unique_ptr< LoggerImpl > | _impl |
| Pimpl to the logger implementation. | |
This class provides a lightweight logger.
Definition at line 17 of file Logger.hpp.
|
explicit |
Creates a logger for a given module.
| [in] | the | name of the module |
Definition at line 128 of file Logger.cpp.
| precice::logging::Logger::Logger | ( | const Logger & | other | ) |
Implements a deep copy of the implementation.
Definition at line 135 of file Logger.cpp.
|
defaultnoexcept |
|
default |
|
noexcept |
Definition at line 181 of file Logger.cpp.
|
noexcept |
Definition at line 157 of file Logger.cpp.
|
noexcept |
Definition at line 173 of file Logger.cpp.
|
noexcept |
|
noexcept |
Definition at line 189 of file Logger.cpp.
|
noexcept |
Definition at line 165 of file Logger.cpp.
|
private |
Pimpl to the logger implementation.
Definition at line 45 of file Logger.hpp.