Temporarily tag log lines on the calling thread, then restore its previous tag. Construct and destroy the scope on the same thread.
More...
#include <log_manager.hpp>
|
| std::string | _previous |
| | Project tag to restore when this scope ends.
|
Temporarily tag log lines on the calling thread, then restore its previous tag. Construct and destroy the scope on the same thread.
Definition at line 293 of file log_manager.hpp.
◆ ProjectScope() [1/2]
| fray::log::ProjectScope::ProjectScope |
( |
const std::string & | project | ) |
|
|
inlineexplicit |
Save the calling thread's tag and optionally replace it.
- Parameters
-
| project | New project tag; empty leaves the current tag unchanged. |
Definition at line 306 of file log_manager.hpp.
◆ ProjectScope() [2/2]
| fray::log::ProjectScope::ProjectScope |
( |
const ProjectScope & | | ) |
|
|
delete |
Disallow copying a project tag scope.
◆ ~ProjectScope()
| fray::log::ProjectScope::~ProjectScope |
( |
| ) |
|
|
inline |
Restore the saved tag on the calling thread.
Definition at line 327 of file log_manager.hpp.
◆ operator=()
Disallow copy assignment of a project tag scope.
◆ _previous
| std::string fray::log::ProjectScope::_previous |
|
private |
Project tag to restore when this scope ends.
Definition at line 299 of file log_manager.hpp.
The documentation for this class was generated from the following file: