Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
log.h
Go to the documentation of this file.
1 
14 #ifndef JANUS_LOG_H
15 #define JANUS_LOG_H
16 
17 #include <stdio.h>
18 #include <glib.h>
19 
24 void janus_vprintf(const char *format, ...) G_GNUC_PRINTF(1, 2);
25 
33 int janus_log_init(gboolean daemon, gboolean console, const char *logfile);
35 void janus_log_destroy(void);
36 
39 gboolean janus_log_is_stdout_enabled(void);
42 gboolean janus_log_is_logfile_enabled(void);
45 char *janus_log_get_logfile_path(void);
46 
47 #endif
void janus_vprintf(const char *format,...) G_GNUC_PRINTF(1
Buffered vprintf.
void janus_log_destroy(void)
Log destruction.
Definition: log.c:231
gboolean janus_log_is_logfile_enabled(void)
Method to check whether file-based logging is enabled.
Definition: log.c:54
gboolean janus_log_is_stdout_enabled(void)
Method to check whether stdout logging is enabled.
Definition: log.c:50
void int janus_log_init(gboolean daemon, gboolean console, const char *logfile)
Log initialization.
Definition: log.c:188
char * janus_log_get_logfile_path(void)
Method to get the path to the log file.
Definition: log.c:58