Fork me on GitHub
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 
25 void janus_vprintf(const char *format, ...) G_GNUC_PRINTF(1, 2);
26 
34 int janus_log_init(gboolean daemon, gboolean console, const char *logfile);
37 void janus_log_set_loggers(GHashTable *loggers);
39 void janus_log_destroy(void);
40 
43 gboolean janus_log_is_stdout_enabled(void);
46 gboolean janus_log_is_logfile_enabled(void);
49 char *janus_log_get_logfile_path(void);
50 
51 #endif
void janus_vprintf(const char *format,...) G_GNUC_PRINTF(1
Buffered vprintf.
void janus_log_destroy(void)
Log destruction.
Definition: log.c:269
gboolean janus_log_is_logfile_enabled(void)
Method to check whether file-based logging is enabled.
Definition: log.c:60
gboolean janus_log_is_stdout_enabled(void)
Method to check whether stdout logging is enabled.
Definition: log.c:56
void int janus_log_init(gboolean daemon, gboolean console, const char *logfile)
Log initialization.
Definition: log.c:218
char * janus_log_get_logfile_path(void)
Method to get the path to the log file.
Definition: log.c:64
void janus_log_set_loggers(GHashTable *loggers)
Method to add a list of external loggers to the log management.
Definition: log.c:261