|
Ersa Wearable Platform
Embedded smartwatch firmware and application framework
|
#include <logging_service.h>

Public Member Functions | |
| virtual | ~LoggingService ()=default |
| virtual void | log (LogLevel level, const char *tag, const char *format,...) __attribute__((format(printf |
| virtual void virtual void | logv (LogLevel level, const char *tag, const char *format, va_list args)=0 |
| virtual void | setLevel (LogLevel level) |
| virtual LogLevel | getLevel () const |
| Return the current minimum severity. | |
Static Public Member Functions | |
| static LoggingService & | instance () |
| static void | setInstance (LoggingService *instance) |
Protected Attributes | |
| LogLevel | minLevel_ {LogLevel::Info} |
Severity-filtered logging contract for firmware and host implementations.
The interface gives services one printf-style diagnostic sink on hardware and in tests. Backends decide where messages go (serial, ring buffer, or host output), while the severity threshold avoids constructing/forwarding routine messages when a deployment wants quieter logs.
|
virtualdefault |
|
inlinevirtual |
Return the current minimum severity.
|
static |
Return the logger installed during system composition.
|
virtual |
Format and emit a message when severity is at least the configured level. format and arguments follow printf rules; tag identifies the source subsystem and should be a stable short label.
Reimplemented in ersa::services::StandardLoggingService.
|
pure virtual |
Same filtering/format behavior as log(), accepting a va_list for adapters.
Implemented in ersa::services::StandardLoggingService.
|
static |
Install a non-owning logger implementation before services start.
|
inlinevirtual |
Change the backend's severity threshold; lower levels are filtered out.
|
protected |