22 private static $_initialized =
false;
24 private $_log4phpLogger = null;
30 if (!self::$_initialized) {
31 Logger::configure($configFile);
32 self::$_initialized =
true;
34 $name = str_replace(
'\\',
'.', $name);
41 public function trace($message) {
42 $this->_log4phpLogger->trace($message);
48 public function debug($message) {
49 $this->_log4phpLogger->debug($message);
55 public function info($message) {
56 $this->_log4phpLogger->info($message);
62 public function warn($message) {
63 $this->_log4phpLogger->warn($message);
69 public function error($message) {
70 $this->_log4phpLogger->error($message);
76 public function fatal($message) {
77 $this->_log4phpLogger->fatal($message);
84 return $this->_log4phpLogger->isDebugEnabled();
91 return $this->_log4phpLogger->isInfoEnabled();
98 return $this->_log4phpLogger->isWarnEnabled();
105 return $this->_log4phpLogger->isErrorEnabled();
112 return $this->_log4phpLogger->isFatalEnabled();
Interface for logger implementations.
Log4phpLogger is a wrapper for the log4php library.
static getLogger($name)
Get a Logger instance by name.
__construct($name, $configFile='')
Constructor.