Program Listing for File logging.h

Return to documentation for file (api/include/pntos/plugins/logging.h)

#pragma once

#include <pntos/plugins/common.h>
#include <stdarg.h>

#ifdef __cplusplus
extern "C" {
#endif

PNTOS_ASSUME_NONNULL_BEGIN

typedef struct PntosLoggingPlugin {
    PntosCommonPlugin common;
    void (*log)(struct PntosLoggingPlugin* self,
                PntosPluginTypes source_plugin_type,
                char* source_plugin_identifier,
                PntosLoggingLevel level,
                char* message);
    void (*log_fmt)(struct PntosLoggingPlugin* self,
                    PntosPluginTypes source_plugin_type,
                    char* source_plugin_identifier,
                    PntosLoggingLevel level,
                    char* fmt,
                    va_list args);
} PntosLoggingPlugin;

PNTOS_ASSUME_NONNULL_END

#ifdef __cplusplus
}
#endif