ONE - On-device Neural Engine
|
Message Source. More...
#include <Source.h>
Data Structures | |
struct | Registry |
Public Types | |
using | Setting = SourceSetting |
Public Member Functions | |
bool | check (const Severity &s) const |
Check whether a message with a given severity is acceptable or not. | |
virtual void | reload (const Config *) |
Update Source with a given configuration. | |
std::unique_ptr< MessageBuffer > | buffer (const Severity &) const |
Protected Member Functions | |
Source () | |
virtual | ~Source () |
void | activate (Registry *, MessageBus *) |
void | deactivate (void) |
Setting & | setting (void) |
Message Source.
"Source" is the actual interface for users. "Source" accepts log messages from client.
using hermes::Source::Setting = SourceSetting |
|
protected |
Definition at line 25 of file Source.cpp.
|
protectedvirtual |
Definition at line 31 of file Source.cpp.
|
protected |
Definition at line 37 of file Source.cpp.
References hermes::Source::Registry::attach().
Referenced by circlechef::Logger::Logger(), exo::Logger::Logger(), luci::Logger::Logger(), moco::Logger::Logger(), and tflchef::Logger::Logger().
std::unique_ptr< MessageBuffer > hermes::Source::buffer | ( | const Severity & | severity | ) | const |
Definition at line 63 of file Source.cpp.
References hermes::Severity::category().
|
inline |
Check whether a message with a given severity is acceptable or not.
NOTE This routine is performance critical as app always invokes this routine (even when logging is disabled).
Definition at line 70 of file Source.h.
References hermes::SourceSetting::limit().
|
protected |
Definition at line 49 of file Source.cpp.
References hermes::Source::Registry::detach().
Referenced by circlechef::Logger::~Logger(), exo::Logger::~Logger(), luci::Logger::~Logger(), moco::Logger::~Logger(), and tflchef::Logger::~Logger().
|
virtual |
Update Source with a given configuration.
WARNING Do NOT invoke this manually.
TODO Remove virtual after migration
Definition at line 61 of file Source.cpp.
References hermes::Config::configure().
|
inlineprotected |