1234567891011121314151617181920212223242526272829303132333435 |
- #ifndef LIBLOG_API_H
- #define LIBLOG_API_H
- #include "log_define.h"
- #include "log_builder.h"
- LOG_CPP_START
- #ifdef WIN32
- #undef interface
- #endif // WIN32
- struct _log_post_option
- {
- int connect_timeout; // connection timeout seconds, 0 as default
- int operation_timeout; // operation timeout seconds, 0 as default
- int compress_type; // 0 no compress, 1 lz4
- int ntp_time_offset; //time offset between local time and server time
- int using_https; // 0 http, 1 https
- };
- typedef struct _log_post_option log_post_option;
- log_status_t sls_log_init(int32_t log_global_flag);
- void sls_log_destroy();
- post_log_result * post_logs(const char *endpoint, const char * accesskeyId, const char *accessKey, const char *stsToken, lz4_log_buf* buffer, log_post_option * option,
- const char *channelId, const char* token, const char* terminalno, const char* reserve1);
- void post_log_result_destroy(post_log_result * result);
- LOG_CPP_END
- #endif
|