Fork me on GitHub
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules 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 
23 void janus_vprintf(const char *format, ...) G_GNUC_PRINTF(1, 2);
24 
32 int janus_log_init(gboolean daemon, gboolean console, const char *logfile);
34 void janus_log_destroy(void);
35 
38 gboolean janus_log_is_stdout_enabled(void);
41 gboolean janus_log_is_logfile_enabled(void);
44 char *janus_log_get_logfile_path(void);
45 
46 #endif
void janus_vprintf(const char *format,...) G_GNUC_PRINTF(1
Buffered vprintf.
void janus_log_destroy(void)
Log destruction.
Definition: log.c:232
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