Fork me on GitHub
Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
1
15#ifndef JANUS_LOG_H
16#define JANUS_LOG_H
17
18#include <stdio.h>
19#include <glib.h>
20
25void janus_vprintf(const char *format, ...) G_GNUC_PRINTF(1, 2);
26
35int janus_log_init(gboolean daemon, gboolean console, const char *logfile, GHashTable *loggers);
37void janus_log_destroy(void);
38
41gboolean janus_log_is_stdout_enabled(void);
44gboolean janus_log_is_logfile_enabled(void);
48
49#endif
void janus_vprintf(const char *format,...) G_GNUC_PRINTF(1
Buffered vprintf.
void int janus_log_init(gboolean daemon, gboolean console, const char *logfile, GHashTable *loggers)
Log initialization.
Definition log.c:141
char * janus_log_get_logfile_path(void)
Method to get the path to the log file.
Definition log.c:58
void janus_log_destroy(void)
Log destruction.
Definition log.c:192
gboolean janus_log_is_stdout_enabled(void)
Method to check whether stdout logging is enabled.
Definition log.c:50
gboolean janus_log_is_logfile_enabled(void)
Method to check whether file-based logging is enabled.
Definition log.c:54