35#ifndef API_MIP_LOGGER_DELEGATE_H_
36#define API_MIP_LOGGER_DELEGATE_H_
56 virtual void Init(
const std::string& storagePath) = 0;
72 const std::string& message,
73 const std::string& function,
74 const std::string& file,
75 const int32_t line) = 0;
89 const std::string& message,
90 const std::string& function,
91 const std::string& file,
93 const std::shared_ptr<void>& ) {
94 WriteToLog(level, message, function, file, line);
A class that stores log messages.
const std::shared_ptr< void > & GetContext() const
The logger context for the log statement.
const std::string & GetLogMessage() const
The message for the log statement.
const std::string & GetFile() const
The file name for the log statement.
const std::string & GetFunction() const
The function name for the log statement.
LogLevel GetLevel() const
The log level for the log statement.
int32_t GetLine() const
The line number for the log statement.
A class that defines the interface to the MIP SDK logger.
virtual void WriteToLogWithContext(const LogLevel level, const std::string &message, const std::string &function, const std::string &file, const int32_t line, const std::shared_ptr< void > &)
Write a log statement to log file with a context.
virtual void Flush()=0
Flush the logger.
virtual void WriteToLog(const LogLevel level, const std::string &message, const std::string &function, const std::string &file, const int32_t line)=0
Write a log statement to log file.
virtual void WriteToLogWithLogMessage(const LogMessageData &logMessage)
Write a log statement to a log.
virtual void Init(const std::string &storagePath)=0
Initialize the logger.
Contains the LogMessageData class for logging.
LogLevel
Different log levels used across the MIP SDK.