silc_log_set_file

SYNOPSIS

    SilcBool silc_log_set_file(SilcLogType type, char *filename,
                               SilcUInt32 maxsize,
                               SilcSchedule scheduler);

DESCRIPTION

Sets `filename', which can be maximum `maxsize' bytes long, as the new logging file for the channel `type'. If you specify an illegal filename a warning message is printed and FALSE is returned. In this case logging settings are not changed.

You can disable logging for a channel by specifying NULL filename, the maxsize in this case is not important. The `scheduler' parameter is needed by the internal logging to allow buffered output and thus to save HD activity. If `scheduler' is NULL this will call silc_schedule_get_global to try to get global scheduler.