ascii-chat 0.11.33
Video chat in your terminal
Loading...
Searching...
No Matches
include/ascii-chat/log/json.h
Go to the documentation of this file.
1
7#pragma once
8
10#include <stdint.h>
11
45void log_json_write(int fd, log_level_t level, uint64_t time_nanoseconds, const char *file, int line, const char *func,
46 const char *message);
47
58void log_set_json_output(int fd);
59
77void log_json_async_safe(int fd, log_level_t level, const char *file, int line, const char *func, const char *message);
unsigned long long uint64_t
Definition common.h:59
log_level_t
Logging levels enumeration.
Definition types.h:29
void log_json_write(int fd, log_level_t level, uint64_t time_nanoseconds, const char *file, int line, const char *func, const char *message)
Write a log entry as a JSON object to the json output fd.
Definition json.c:94
void log_json_async_safe(int fd, log_level_t level, const char *file, int line, const char *func, const char *message)
Async-safe JSON logging for signal handlers.
Definition json.c:250
void log_set_json_output(int fd)
Set the JSON output file descriptor.
Definition log/log.c:729
📝 Logging API with multiple log levels and terminal output control