Example #1
0
/**
 * Issue a debug message via syslog, only if $log_level is set to
 * 'debug' from the config file.
 *
 * @param log_string	Log message to send to syslog.
 * @param server_id	If set, print the logged user as well.
 *
 * @return true on success or if debug log is not activated.
 */
function syslog_debug($log_string, $ldapserver = null)
{
    return syslog_msg(LOG_DEBUG, $log_string, $ldapserver);
}
Example #2
0
/**
 * Issue a debug message via syslog, only if $log_level is set to
 * 'debug' from the config file.
 *
 * @param log_string Log message to send to syslog.
 * @return true on success or if debug log is not activated.
 */
function syslog_debug($log_string)
{
    return syslog_msg(LOG_DEBUG, $log_string);
}