Function gnunet_sys::GNUNET_logger_add[][src]

pub unsafe extern "C" fn GNUNET_logger_add(
    logger: GNUNET_Logger,
    logger_cls: *mut c_void
)

@ingroup logging Add a custom logger. Note that installing any custom logger will disable the standard logger. When multiple custom loggers are installed, all will be called. The standard logger will only be used if no custom loggers are present.

@param logger log function @param logger_cls closure for @a logger