Microsoft Information Protection (MIP) SDK for C++: Reference 1.15
Doxygen-generated documentation for MIP SDK written in C++
|
A class that defines the interface to the MIP SDK logger. More...
#include <src/api/mip/logger_delegate.h>
Public Member Functions | |
virtual void | Flush ()=0 |
Flush the logger. | |
virtual void | Init (const std::string &storagePath)=0 |
Initialize 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 | 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 | WriteToLogWithLogMessage (const LogMessageData &logMessage) |
Write a log statement to a log. | |
A class that defines the interface to the MIP SDK logger.
Definition at line 49 of file logger_delegate.h.
|
pure virtual |
Flush the logger.
|
pure virtual |
Initialize the logger.
storagePath | the path to the location where persistent state, including logs, may be stored. |
|
pure virtual |
Write a log statement to log file.
level | the log level for the log statement. |
message | the message for the log statement. |
function | the function name for the log statement. |
file | the file name where log statement was generated. |
line | the line number where the log statement was generated. |
Referenced by WriteToLogWithContext().
|
inlinevirtual |
Write a log statement to log file with a context.
Override this function to handle the context
level | the log level for the log statement. |
message | the message for the log statement. |
function | the function name for the log statement. |
file | the file name where log statement was generated. |
line | the line number where the log statement was generated. |
context | Client context that was passed into the call that generated this log message |
Definition at line 87 of file logger_delegate.h.
References WriteToLog().
Referenced by WriteToLogWithLogMessage().
|
inlinevirtual |
Write a log statement to a log.
logMessage | The log message data containing the logging information |
Definition at line 102 of file logger_delegate.h.
References LogMessageData::GetContext(), LogMessageData::GetFile(), LogMessageData::GetFunction(), LogMessageData::GetLevel(), LogMessageData::GetLine(), LogMessageData::GetLogMessage(), and WriteToLogWithContext().