16#define MAXLOGLINE 16384
53 int withStderr) ATTR_NONNULL((1));
104 ATTR_NONNULL((2)) ATTR_FORMAT((printf, 2, 3));
void IBLog_setCustomLogger(IBLogWriter writer, void *data)
Set a custom log writer.
void IBLog_msg(IBLogLevel level, const char *message)
Log a message.
void IBLog_setMaxLogLevel(IBLogLevel level)
Set the maximum level for logging.
void IBLog_setFileLogger(FILE *file)
Set a log writer logging to the specified file handle.
void IBLog_fmt(IBLogLevel level, const char *format,...)
Log a message, using printf-like formatting.
void IBLog_setSyslogLogger(const char *ident, int facility, int withStderr)
Set a log writer logging via syslog().
void IBLog_setSilent(int silent)
Silence all logging.
void IBLog_setAsync(int async)
Enable async logging.
Common preprocessor declarations for libircbot.
void(* IBLogWriter)(IBLogLevel level, const char *message, void *data)
A log writer.
Definition: log.h:37
IBLogLevel
Logging level log.h <ircbot/log.h>
Definition: log.h:22
@ L_FATAL
program execution can't continue
Definition: log.h:23
@ L_ERROR
an error message, can't successfully complete
Definition: log.h:24
@ L_WARNING
a warning message, something seems wrong
Definition: log.h:25
@ L_DEBUG
a debugging message, very verbose
Definition: log.h:27
@ L_INFO
an information message
Definition: log.h:26