ONE - On-device Neural Engine
|
Logging controller. More...
#include <Context.h>
Public Member Functions | |
const Config * | config (void) const |
Get the global configuration. | |
void | config (std::unique_ptr< Config > &&) |
Update the global configuration. | |
MessageBus * | bus (void) |
Source::Registry * | sources (void) |
Sink::Registry * | sinks (void) |
Logging controller.
This "Context" serves as a controller for associated logging source/sink.
WARNING This "Context" is not yet thread-safe. TODO Support multi-threaded application logging
|
inline |
Definition at line 48 of file Context.h.
Referenced by circlechef::Logger::Logger(), exo::Logger::Logger(), luci::Logger::Logger(), moco::Logger::Logger(), and tflchef::Logger::Logger().
void hermes::Context::config | ( | std::unique_ptr< Config > && | config | ) |
Update the global configuration.
Definition at line 30 of file Context.cpp.
References config().
const Config * hermes::Context::config | ( | void | ) | const |
Get the global configuration.
Definition at line 24 of file Context.cpp.
Referenced by config(), circlechef::LoggingContext::get(), exo::LoggingContext::get(), luci::LoggingContext::get(), moco::LoggingContext::get(), tflchef::LoggingContext::get(), and main().
|
inline |
Definition at line 64 of file Context.h.
Referenced by circlechef::LoggingContext::get(), exo::LoggingContext::get(), luci::LoggingContext::get(), moco::LoggingContext::get(), and tflchef::LoggingContext::get().
|
inline |
Definition at line 55 of file Context.h.
Referenced by circlechef::Logger::Logger(), exo::Logger::Logger(), luci::Logger::Logger(), moco::Logger::Logger(), and tflchef::Logger::Logger().