A class that sets the G::LogOuput::context() while in scope.
EventLoggingContext(ExceptionSource *esrc)
Constructor that sets the logging context to whatever ExceptionSource::exceptionSourceId() returns.
~EventLoggingContext() noexcept
Destructor. Restores the logging context.
static void context(std::string(*fn)(void *)=nullptr, void *fn_arg=nullptr) noexcept
Sets a functor that is used to provide a context string for every log line, if configured.