Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
ara::log::sink::FileLogSink Class Reference
Inheritance diagram for ara::log::sink::FileLogSink:
ara::log::sink::LogSink

Public Member Functions

 FileLogSink (std::string appId, std::string appDescription, std::string logFilePath)
 Constructor. More...
 
void Log (const LogStream &logStream) const override
 Log a stream corresponds to the current application. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ara::log::sink::LogSink
 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 inherited from ara::log::sink::LogSink
const std::string cWhitespace {" "}
 Whitespace constant character.
 

Constructor & Destructor Documentation

◆ FileLogSink()

ara::log::sink::FileLogSink::FileLogSink ( std::string  appId,
std::string  appDescription,
std::string  logFilePath 
)

Constructor.

Parameters
appIdApplication ID
appDescriptionApplication description
logFilePathLogging file sink path

Member Function Documentation

◆ Log()

void ara::log::sink::FileLogSink::Log ( const LogStream logStream) const
overridevirtual

Log a stream corresponds to the current application.

Parameters
logStreamInput log stream

Implements ara::log::sink::LogSink.