27#include <mstdlib/mstdlib_io.h>
51#define M_LOG_ALL_TAGS M_UINT64_MAX
929 M_uint64 autorotate_size, M_uint64 autorotate_time_s,
size_t max_queue_bytes, const
char *archive_cmd,
1054 M_uint64 timeout_ms);
1072 M_uint64 retry_time_s, M_uint64 retry_count);
struct M_buf M_buf_t
Definition: m_buf.h:77
struct M_dns M_dns_t
Definition: m_dns.h:43
struct M_event M_event_t
Definition: m_event.h:210
struct M_list M_list_t
Definition: m_list.h:92
M_log_error_t M_log_module_android_set_tag_priority(M_log_t *log, M_log_module_t *module, M_uint64 tags, M_android_log_priority_t priority)
M_log_error_t M_log_module_add_android(M_log_t *log, const char *product, size_t max_queue_bytes, M_log_module_t **out_mod)
M_log_module_type_t
Definition: m_log.h:229
M_log_error_t M_log_set_time_format(M_log_t *log, const char *fmt)
M_log_error_t M_log_set_tag_name(M_log_t *log, M_uint64 tag, const char *name)
M_log_error_t M_log_set_prefix(M_log_t *log, M_log_prefix_cb prefix_cb, void *prefix_thunk, M_log_destroy_cb thunk_destroy_cb)
M_log_error_t M_log_module_set_accepted_tags(M_log_t *log, M_log_module_t *module, M_uint64 tags)
M_bool M_log_module_present(M_log_t *log, M_log_module_t *module)
M_log_line_end_mode_t
Definition: m_log.h:242
void(* M_log_prefix_cb)(M_buf_t *msg_buf, M_uint64 tag, void *prefix_thunk, void *msg_thunk)
Definition: m_log.h:159
M_log_error_t M_log_module_set_prefix(M_log_t *log, M_log_module_t *module, M_log_prefix_cb prefix_cb, void *prefix_thunk, M_log_destroy_cb thunk_destroy_cb)
void(* M_log_destroy_cb)(void *thunk)
Definition: m_log.h:206
M_log_error_t M_log_module_remove(M_log_t *log, M_log_module_t *module)
void M_log_suspend(M_log_t *log)
const char * M_log_err_to_str(M_log_error_t err)
M_android_log_priority_t
Definition: m_log.h:299
M_list_t * M_log_all_modules(M_log_t *log)
M_log_error_t M_log_module_get_accepted_tags(M_log_t *log, M_log_module_t *module, M_uint64 *out_tags)
const char * M_log_get_tag_name(M_log_t *log, M_uint64 tag)
void M_log_emergency(M_log_t *log, const char *msg)
M_log_error_t M_log_set_tag_names_padded(M_log_t *log, M_bool padded)
void M_log_destroy_blocking(M_log_t *log, M_uint64 timeout_ms)
void M_log_reopen_all(M_log_t *log)
void M_log_resume(M_log_t *log, M_event_t *event)
M_log_error_t M_log_module_set_filter(M_log_t *log, M_log_module_t *module, M_log_filter_cb filter_cb, void *filter_thunk, M_log_destroy_cb thunk_destroy_cb)
struct M_log_module M_log_module_t
Definition: m_log.h:126
M_log_error_t M_log_write(M_log_t *log, M_uint64 tag, void *msg_thunk, const char *msg)
M_stream_type_t
Definition: m_log.h:250
M_uint64 M_log_get_tag(M_log_t *log, const char *name)
M_log_error_t
Definition: m_log.h:210
M_log_error_t M_log_vprintf(M_log_t *log, M_uint64 tag, void *msg_thunk, const char *fmt, va_list ap)
void(* M_log_expire_cb)(M_log_module_t *module, void *thunk)
Definition: m_log.h:202
M_log_error_t M_log_module_reopen(M_log_t *log, M_log_module_t *module)
struct M_log M_log_t
Definition: m_log.h:122
void M_log_destroy(M_log_t *log)
M_syslog_priority_t
Definition: m_log.h:281
M_syslog_facility_t
Definition: m_log.h:257
M_bool(* M_log_filter_cb)(M_uint64 tag, void *filter_thunk, void *msg_thunk)
Definition: m_log.h:181
M_log_error_t M_log_printf(M_log_t *log, M_uint64 tag, void *msg_thunk, const char *fmt,...)
M_log_t * M_log_create(M_log_line_end_mode_t mode, M_bool flush_on_destroy, M_event_t *event)
M_log_module_type_t M_log_module_type(M_log_t *log, M_log_module_t *module)
@ M_LOG_MODULE_MEMBUF
Definition: m_log.h:237
@ M_LOG_MODULE_NSLOG
Definition: m_log.h:232
@ M_LOG_MODULE_STREAM
Definition: m_log.h:231
@ M_LOG_MODULE_ANDROID
Definition: m_log.h:233
@ M_LOG_MODULE_NULL
Definition: m_log.h:230
@ M_LOG_MODULE_FILE
Definition: m_log.h:234
@ M_LOG_MODULE_SYSLOG
Definition: m_log.h:235
@ M_LOG_MODULE_TSYSLOG
Definition: m_log.h:236
@ M_LOG_LINE_END_UNIX
Definition: m_log.h:244
@ M_LOG_LINE_END_WINDOWS
Definition: m_log.h:245
@ M_LOG_LINE_END_NATIVE
Definition: m_log.h:243
@ M_ANDROID_LOG_ERROR
Definition: m_log.h:301
@ M_ANDROID_LOG_INFO
Definition: m_log.h:303
@ M_ANDROID_LOG_FATAL
Definition: m_log.h:300
@ M_ANDROID_LOG_WARN
Definition: m_log.h:302
@ M_ANDROID_LOG_DEBUG
Definition: m_log.h:304
@ M_ANDROID_LOG_VERBOSE
Definition: m_log.h:305
@ M_STREAM_STDERR
Definition: m_log.h:252
@ M_STREAM_STDOUT
Definition: m_log.h:251
@ M_LOG_MODULE_NOT_FOUND
Definition: m_log.h:222
@ M_LOG_WRONG_MODULE
Definition: m_log.h:223
@ M_LOG_INVALID_PARAMS
Definition: m_log.h:213
@ M_LOG_INVALID_TAG
Definition: m_log.h:215
@ M_LOG_MODULE_UNSUPPORTED
Definition: m_log.h:221
@ M_LOG_UNREACHABLE
Definition: m_log.h:219
@ M_LOG_SUSPENDED
Definition: m_log.h:217
@ M_LOG_INVALID_PATH
Definition: m_log.h:214
@ M_LOG_NO_EVENT_LOOP
Definition: m_log.h:216
@ M_LOG_GENERIC_FAIL
Definition: m_log.h:224
@ M_LOG_INVALID_TIME_FORMAT
Definition: m_log.h:220
@ M_LOG_DUPLICATE_TAG_NAME
Definition: m_log.h:218
@ M_LOG_SUCCESS
Definition: m_log.h:211
@ M_SYSLOG_WARNING
Definition: m_log.h:286
@ M_SYSLOG_NOTICE
Definition: m_log.h:287
@ M_SYSLOG_EMERG
Definition: m_log.h:282
@ M_SYSLOG_CRIT
Definition: m_log.h:284
@ M_SYSLOG_ALERT
Definition: m_log.h:283
@ M_SYSLOG_DEBUG
Definition: m_log.h:289
@ M_SYSLOG_ERR
Definition: m_log.h:285
@ M_SYSLOG_INFO
Definition: m_log.h:288
@ M_SYSLOG_FACILITY_USER
Definition: m_log.h:258
@ M_SYSLOG_FACILITY_LOCAL3
Definition: m_log.h:263
@ M_SYSLOG_FACILITY_LOCAL5
Definition: m_log.h:265
@ M_SYSLOG_FACILITY_DAEMON
Definition: m_log.h:259
@ M_SYSLOG_FACILITY_LOCAL2
Definition: m_log.h:262
@ M_SYSLOG_FACILITY_LOCAL1
Definition: m_log.h:261
@ M_SYSLOG_FACILITY_LOCAL4
Definition: m_log.h:264
@ M_SYSLOG_FACILITY_LOCAL0
Definition: m_log.h:260
@ M_SYSLOG_FACILITY_LOCAL6
Definition: m_log.h:266
@ M_SYSLOG_FACILITY_LOCAL7
Definition: m_log.h:267
M_log_error_t M_log_module_file_rotate(M_log_t *log, M_log_module_t *module)
M_log_error_t M_log_module_add_file(M_log_t *log, const char *log_file_path, size_t num_to_keep, M_uint64 autorotate_size, M_uint64 autorotate_time_s, size_t max_queue_bytes, const char *archive_cmd, const char *archive_file_ext, M_log_module_t **out_mod)
M_log_error_t M_log_module_add_membuf(M_log_t *log, size_t buf_size, M_uint64 buf_time_s, M_log_expire_cb expire_cb, void *expire_thunk, M_log_module_t **out_mod)
M_log_error_t M_log_module_take_membuf(M_log_t *log, M_log_module_t *module, M_buf_t **out_buf)
M_log_error_t M_log_module_add_nslog(M_log_t *log, size_t max_queue_bytes, M_log_module_t **out_mod)
M_log_error_t M_log_module_add_stream(M_log_t *log, M_stream_type_t type, size_t max_queue_bytes, M_log_module_t **out_mod)
M_log_error_t M_log_module_syslog_set_tag_priority(M_log_t *log, M_log_module_t *module, M_uint64 tags, M_syslog_priority_t priority)
M_log_error_t M_log_module_add_syslog(M_log_t *log, const char *product, M_syslog_facility_t facility, size_t max_queue_bytes, M_log_module_t **out_mod)
M_uint64 M_log_all_tags_gt(M_uint64 tag)
M_uint64 M_log_all_tags_lt(M_uint64 tag)
M_uint64 M_log_all_tags_lte(M_uint64 tag)
M_uint64 M_log_all_tags_gte(M_uint64 tag)
M_log_error_t M_log_module_add_tcp_syslog(M_log_t *log, const char *product, M_syslog_facility_t facility, const char *host, M_uint16 port, M_dns_t *dns, size_t max_queue_bytes, M_log_module_t **out_mod)
M_log_error_t M_log_module_tcp_syslog_set_keepalives(M_log_t *log, M_log_module_t *module, M_uint64 idle_time_s, M_uint64 retry_time_s, M_uint64 retry_count)
M_log_error_t M_log_module_tcp_syslog_set_connect_timeout_ms(M_log_t *log, M_log_module_t *module, M_uint64 timeout_ms)
M_log_error_t M_log_module_tcp_syslog_set_tag_priority(M_log_t *log, M_log_module_t *module, M_uint64 tags, M_syslog_priority_t priority)