Source for file Ethna_Plugin_Logwriter_Syslog.php
Documentation is available at Ethna_Plugin_Logwriter_Syslog.php
// vim: foldmethod=marker
* Ethna_Plugin_Logwriter_Syslog.php
* @author Masaki Fujimoto <fujimoto@php.net>
* @license http://www.opensource.org/licenses/bsd-license.php The BSD License
// {{{ Ethna_Plugin_Logwriter_Syslog
* @author Masaki Fujimoto <fujimoto@php.net>
$option =
$this->option & (LOG_PID);
openlog($this->ident, $option, $this->facility);
* @param int $level ログレベル(LOG_DEBUG, LOG_NOTICE...)
* @param string $message ログメッセージ(+引数)
function log($level, $message)
$prefix =
sprintf('%s: ', $this->_getLogLevelName($level));
$bt =
$this->_getBacktrace();
$tmp .=
$tmp ?
sprintf('(%s)', $bt['pos']) :
$bt['pos'];
syslog($level, $prefix .
$message);
return $prefix .
$message;
Documentation generated on Fri, 11 Nov 2011 04:00:38 +0900 by phpDocumentor 1.4.3