OSSIA
Open Scenario System for Interactive Application
|
Log various messages in JSON to a websocket server, and send heartbeats. More...
Log various messages in JSON to a websocket server, and send heartbeats.
Enumerations | |
enum | log_level { trace , debug , info , warn , error , critical , off } |
Functions | |
OSSIA_EXPORT ossia_logger_t | ossia_logger_create (const char *host, const char *app) |
Create a logger instance. More... | |
OSSIA_EXPORT void | ossia_logger_init_heartbeat (ossia_logger_t log, int pid, const char *cmdline) |
Start sending logger heartbeats. More... | |
OSSIA_EXPORT void | ossia_logger_set_level (ossia_logger_t log, enum log_level lvl) |
Change the current log level. More... | |
OSSIA_EXPORT void | ossia_log (ossia_logger_t log, enum log_level lvl, const char *message) |
Log a message. More... | |
OSSIA_EXPORT void | ossia_logger_free (ossia_logger_t log) |
Free a logger instance. More... | |
enum log_level |
Log levels available
OSSIA_EXPORT ossia_logger_t ossia_logger_create | ( | const char * | host, |
const char * | app | ||
) |
Create a logger instance.
websocket | host: ws://127.0.0.1:1337 |
app | name of the local app |
OSSIA_EXPORT void ossia_logger_init_heartbeat | ( | ossia_logger_t | log, |
int | pid, | ||
const char * | cmdline | ||
) |
Start sending logger heartbeats.
OSSIA_EXPORT void ossia_logger_set_level | ( | ossia_logger_t | log, |
enum log_level | lvl | ||
) |
Change the current log level.
OSSIA_EXPORT void ossia_log | ( | ossia_logger_t | log, |
enum log_level | lvl, | ||
const char * | message | ||
) |
Log a message.
OSSIA_EXPORT void ossia_logger_free | ( | ossia_logger_t | log | ) |
Free a logger instance.