Captures Engine logs before managers exist and forwards them once attached. Construct before startup logging. The attachment must be destroyed before its managers.
More...
#include <engine_log_sink.hpp>
|
| struct | Captured |
| | An owned log line captured before the managers were attached. More...
|
| struct | State |
| | Shared callback state, kept alive by in-flight sink snapshots. More...
|
| struct | ActiveCall |
| | Releases an in-flight call even if recording throws. More...
|
| struct | RecursionGuard |
| | Restores the thread-local recursion guard. More...
|
| class | Attachment |
| | Keeps the sink attached to live managers and detaches it on destruction. Declare after the managers so it is destroyed before them. More...
|
|
| void | detach () |
| | Stops accepting sink calls and waits for existing calls to release the manager references. Call while both attached managers are still alive, and not from a sink callback.
|
Captures Engine logs before managers exist and forwards them once attached. Construct before startup logging. The attachment must be destroyed before its managers.
Definition at line 28 of file engine_log_sink.hpp.
◆ EngineLogSink() [1/2]
| fray::log::EngineLogSink::EngineLogSink |
( |
| ) |
|
|
inline |
Installs the startup buffer before the managers are created.
Definition at line 105 of file engine_log_sink.hpp.
◆ EngineLogSink() [2/2]
| fray::log::EngineLogSink::EngineLogSink |
( |
const EngineLogSink & | | ) |
|
|
delete |
◆ ~EngineLogSink()
| fray::log::EngineLogSink::~EngineLogSink |
( |
| ) |
|
|
inline |
◆ detach()
| void fray::log::EngineLogSink::detach |
( |
| ) |
|
|
inlineprivate |
Stops accepting sink calls and waits for existing calls to release the manager references. Call while both attached managers are still alive, and not from a sink callback.
Definition at line 81 of file engine_log_sink.hpp.
◆ operator=()
◆ stopForwarding()
| F_void fray::log::EngineLogSink::stopForwarding |
( |
| ) |
|
|
inline |
Stops forwarding to the renderer while continuing to store Engine logs.
Definition at line 185 of file engine_log_sink.hpp.
◆ _state
| std::shared_ptr<State> fray::log::EngineLogSink::_state = std::make_shared<State>() |
|
private |
The documentation for this class was generated from the following file: