Loading...
Searching...
No Matches
log.h
Go to the documentation of this file.
#ifndef JANUS_LOG_H
#define JANUS_LOG_H
#include <stdio.h>
#include <glib.h>
void janus_vprintf(const char *format, ...) G_GNUC_PRINTF(1, 2);
int janus_log_init(gboolean daemon, gboolean console, const char *logfile, GHashTable *loggers);
void janus_log_reload(void);
void janus_log_destroy(void);
gboolean janus_log_is_stdout_enabled(void);
gboolean janus_log_is_logfile_enabled(void);
char *janus_log_get_logfile_path(void);
#endif
janus_log_get_logfile_path
char * janus_log_get_logfile_path(void)
Method to get the path to the log file.
Definition log.c:59
janus_log_destroy
void janus_log_destroy(void)
Log destruction.
Definition log.c:217
janus_log_is_stdout_enabled
gboolean janus_log_is_stdout_enabled(void)
Method to check whether stdout logging is enabled.
Definition log.c:51
janus_log_reload
void janus_log_reload(void)
Reopen log file (log rotation).
Definition log.c:211
janus_log_is_logfile_enabled
gboolean janus_log_is_logfile_enabled(void)
Method to check whether file-based logging is enabled.
Definition log.c:55
janus_log_init
int janus_log_init(gboolean daemon, gboolean console, const char *logfile, GHashTable *loggers)
Log initialization.
Definition log.c:160
janus_vprintf
void janus_vprintf(const char *format,...) G_GNUC_PRINTF(1
Buffered vprintf.