22 lines
498 B
C
22 lines
498 B
C
#pragma once
|
|
|
|
#include <tfe_stream.h>
|
|
#include <tfe_http.h>
|
|
#include <MESA/Maat_rule.h>
|
|
|
|
struct pangu_log
|
|
{
|
|
const struct tfe_stream *stream;
|
|
const struct tfe_http_session* http;
|
|
const Maat_rule_t*result;
|
|
size_t result_num;
|
|
};
|
|
struct pangu_logger;
|
|
struct pangu_logger* pangu_log_handle_create(const char* profile, const char* section, void* local_logger);
|
|
|
|
//return 0 if SUCCESS, otherwise return -1
|
|
int pangu_send_log(struct pangu_logger* handle, const struct pangu_log* log_msg);
|
|
|
|
|
|
|