Application logging sink. More...
#include <log_sink.h>
Public Member Functions | |
virtual void | Log (const LogStream &logStream) const =0 |
Log a stream corresponds to the current application. More... | |
Protected Member Functions | |
LogSink (std::string appId, std::string appDescription) | |
Constructor. More... | |
LogStream | GetAppstamp () const |
Get the application stamp (application ID and description) More... | |
LogStream | GetTimestamp () const |
Get the current timestamp at the function call. More... | |
Protected Attributes | |
const std::string | cWhitespace {" "} |
Whitespace constant character. | |
Application logging sink.
|
protected |
Constructor.
appId | Application ID |
appDescription | Application description |
|
protected |
Get the application stamp (application ID and description)
|
protected |
Get the current timestamp at the function call.
A log stream with the current long format date-time
|
pure virtual |
Log a stream corresponds to the current application.
logStream | Input log stream |
Implemented in ara::log::sink::ConsoleLogSink, and ara::log::sink::FileLogSink.