This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA
Functions
syslog_msg(
$emergency,
$log_string,
)
:
n/a
Description
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.
Arguments
Name
Type
Description
Default
$emergency
n/a
$log_string
n/a
Return value
Type
Description
n/a
n/a
syslog_err(
$log_string,
)
:
true
Description
Issue an error message via syslog.
Arguments
Name
Type
Description
Default
$log_string
n/a
Return value
Type
Description
true
on success.
syslog_warning(
$log_string,
)
:
true
Description
Issue a warning message via syslog.
Arguments
Name
Type
Description
Default
$log_string
n/a
Return value
Type
Description
true
on success.
syslog_notice(
$log_string,
)
:
true
Description
Issue a notice message via syslog.
Arguments
Name
Type
Description
Default
$log_string
n/a
Return value
Type
Description
true
on success.
syslog_debug(
$log_string,
)
:
true
Description
Issue a debug message via syslog, only if $log_level is set to
'debug' from the config file.