phpLDAPadmin
[ class tree: phpLDAPadmin ] [ index: phpLDAPadmin ] [ all elements ]

Procedural File: syslog.php

Source Location: /lib/syslog.php



Page Details:

Functions related to syslog logging.



Tags:

filesource:  Source Code for this file
author:  Benjamin Drieu <benjamin.drieu@fr.alcove.com> and AlcĂ´ve








syslog_debug [line 101]

true syslog_debug( log_string $log_string, [server_id $ldapserver = null])

Issue a debug message via syslog, only if $log_level is set to 'debug' from the config file.



Tags:

return:  on success or if debug log is not activated.


Parameters

log_string   $log_string   Log message to send to syslog.
server_id   $ldapserver   If set, print the logged user as well.
[ Top ]



syslog_err [line 64]

true syslog_err( log_string $log_string, [server_id $ldapserver = null])

Issue an error message via syslog.



Tags:

return:  on success.


Parameters

log_string   $log_string   Log message to send to syslog.
server_id   $ldapserver   If set, print the logged user as well.
[ Top ]



syslog_msg [line 44]

void syslog_msg( emergency $emergency, log_string $log_string, [ $ldapserver = null])

Verify that syslog logging is activated in the config via the debug->syslog variable and does a call to the syslog() function is it is true.



Parameters

emergency   $emergency   Syslog emergency.
log_string   $log_string   String to log.
   $ldapserver  
[ Top ]



syslog_notice [line 88]

true syslog_notice( log_string $log_string, [server_id $ldapserver = null])

Issue a notice message via syslog.



Tags:

return:  on success.


Parameters

log_string   $log_string   Log message to send to syslog.
server_id   $ldapserver   If set, print the logged user as well.
[ Top ]



syslog_warning [line 76]

true syslog_warning( log_string $log_string, [server_id $ldapserver = null])

Issue a warning message via syslog.



Tags:

return:  on success.


Parameters

log_string   $log_string   Log message to send to syslog.
server_id   $ldapserver   If set, print the logged user as well.
[ Top ]



Documentation generated on Sun, 30 Dec 2007 17:50:52 -0800 by phpDocumentor 1.3.1