Function silc_log_output
SYNOPSIS
void silc_log_output(SilcLogType type, char *string);
DESCRIPTION
This is the main function for logging output. Please note that you
should rather use one of the logging wrapper macros.
If you really want to use this function, its usage is quite simple.
The `type' parameter identifies the channel to use, while the `string'
parameter must be a dynamic allocated (null-terminated) buffer, because
it will be freed at the end of this function, for internal reasons.
If there are registered callbacks for the specified type, this function
will first trigger those callbacks. The callback functions must NOT
free or modify the original buffer.
SEE ALSO
SILC_LOG_INFO, SILC_LOG_WARNING, SILC_LOG_ERROR, SILC_LOG_FATAL
|