#include <JsonEventSink.hpp>
Public Member Functions | |
| JsonEventSink (const std::filesystem::path &path) | |
| void | onEvent (const rg_event &event) noexcept override |
| Public Member Functions inherited from bastionguard::rootguard::IEventSink | |
| virtual | ~IEventSink ()=default |
Static Private Member Functions | |
| static std::string | escape (const char *value) |
Private Attributes | |
| std::ofstream | stream_ |
| std::mutex | mutex_ |
Definition at line 11 of file JsonEventSink.hpp.
|
explicit |
Definition at line 73 of file JsonEventSink.cpp.
References stream_.
|
staticprivate |
Definition at line 80 of file JsonEventSink.cpp.
Referenced by onEvent().
|
overridevirtualnoexcept |
Implements bastionguard::rootguard::IEventSink.
Definition at line 103 of file JsonEventSink.cpp.
References escape(), mutex_, and stream_.
Referenced by anonymous_namespace{ActionHelper.cpp}::logAction().
|
private |
Definition at line 20 of file JsonEventSink.hpp.
Referenced by onEvent().
|
private |
Definition at line 19 of file JsonEventSink.hpp.
Referenced by JsonEventSink(), and onEvent().