static void trace_logger(int32_t t, struct qb_log_callsite *cs, time_t timestamp, const char *msg) { char output_buffer[QB_LOG_MAX_LEN]; output_buffer[0] = '\0'; qb_log_target_format(t, cs, timestamp, msg, output_buffer); fprintf(stderr, "%s\n", output_buffer); }
/* * to test that we get what we expect. */ static void _test_logger(int32_t t, struct qb_log_callsite *cs, time_t timestamp, const char *msg) { test_buf[0] = '\0'; qb_log_target_format(t, cs, timestamp, msg, test_buf); test_priority = cs->priority; num_msgs++; }