|
Microsoft Information Protection SDK - C 1.17
API Reference Documentation for C
|
Defines logger callback functions. More...
#include "mip_cc/common_types_cc.h"#include "mip_cc/error_cc.h"#include "mip_cc/mip_macros_cc.h"#include "mip_cc/result_cc.h"Go to the source code of this file.
Classes | |
| struct | mip_cc_log_message_data |
| struct | mip_cc_create_logger_delegate_message_data_args |
Typedefs | |
| typedef mip_cc_handle * | mip_cc_logger_delegate |
Enumerations | |
| enum | mip_cc_log_level { MIP_LOG_LEVEL_TRACE = 0 , MIP_LOG_LEVEL_INFO , MIP_LOG_LEVEL_WARNING , MIP_LOG_LEVEL_ERROR } |
| Log level. More... | |
Functions | |
| MIP_CC_CALLBACK (mip_cc_logger_init_callback_fn, void, const char *) | |
| Callback function definition for initialization of logger. | |
| MIP_CC_CALLBACK (mip_cc_logger_flush_callback_fn, void) | |
| Callback function definition for flushing logs to disk. | |
| MIP_CC_CALLBACK (mip_cc_logger_write_callback_fn, void, const mip_cc_log_level, const char *, const char *, const char *, const int32_t) | |
| Callback function definition for writing a log statement. | |
| MIP_CC_CALLBACK (mip_cc_logger_write_with_message_data_callback_fn, void, mip_cc_log_message_data logMessageData) | |
| Callback function definition for writing a log statement. | |
| MIP_CC_API (mip_cc_result) MIP_CC_CreateLoggerDelegate(const mip_cc_logger_init_callback_fn initCallback | |
| Creates a logger delegate which can be used to override MIP's default logger. | |
| MIP_CC_API (void) MIP_CC_ReleaseLoggerDelegate(mip_cc_logger_delegate loggerDelegate) | |
| Release resources associated with an logger delegate handle. | |
Variables | |
| const mip_cc_logger_flush_callback_fn | flushCallback |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn | writeCallback |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn mip_cc_logger_delegate * | loggerDelegate |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn mip_cc_logger_delegate mip_cc_error * | errorInfo |
Defines logger callback functions.
| typedef mip_cc_handle* mip_cc_logger_delegate |
| enum mip_cc_log_level |
| MIP_CC_API | ( | mip_cc_result | ) | const |
Creates a logger delegate which can be used to override MIP's default logger.
| initCallback | Function pointer for initialization |
| flushCallback | Function pointer for flushing logs |
| writeCallback | Function pointer for writing a log statement |
| loggerDelegate | [Output] Handle to logger delegate object |
| errorInfo | [Output] (Optional) Failure info if operation result is error |
| methodargs | Arguments to this function |
| MIP_CC_API | ( | void | ) |
Release resources associated with an logger delegate handle.
| loggerDelegate | logger delegate to be released |
| MIP_CC_CALLBACK | ( | mip_cc_logger_flush_callback_fn | , |
| void | ) |
Callback function definition for flushing logs to disk.
| MIP_CC_CALLBACK | ( | mip_cc_logger_init_callback_fn | , |
| void | , | ||
| const char * | ) |
Callback function definition for initialization of logger.
| storagePath | File path where logs may be stored |
| MIP_CC_CALLBACK | ( | mip_cc_logger_write_callback_fn | , |
| void | , | ||
| const mip_cc_log_level | , | ||
| const char * | , | ||
| const char * | , | ||
| const char * | , | ||
| const int32_t | ) |
Callback function definition for writing a log statement.
| 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. |
| MIP_CC_CALLBACK | ( | mip_cc_logger_write_with_message_data_callback_fn | , |
| void | , | ||
| mip_cc_log_message_data | logMessageData ) |
Callback function definition for writing a log statement.
| logMessageData | The log data |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn mip_cc_logger_delegate mip_cc_error* errorInfo |
| const mip_cc_logger_flush_callback_fn flushCallback |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn mip_cc_logger_delegate* loggerDelegate |
| const mip_cc_logger_flush_callback_fn const mip_cc_logger_write_callback_fn writeCallback |