19 require_once(BASE.
"wcmf/3rdparty/log4php/src/main/php/LoggerManager.php");
20 require_once(BASE.
"wcmf/3rdparty/log4php/src/main/php/Logger.php");
32 class Log extends Logger
39 function debug($message, $category)
42 $logger->debug($message);
49 function info($message, $category)
52 $logger->info($message);
59 function warn($message, $category)
62 $logger->warn($message);
69 function error($message, $category)
72 $logger->error($message);
79 function fatal($message, $category)
82 $logger->fatal($message);
92 return $logger->isDebugEnabled();
102 return $logger->isInfoEnabled();
112 return $logger->isWarnEnabled();
122 return $logger->isErrorEnabled();
132 return $logger->isFatalEnabled();
142 $logger = &LoggerManager::getLogger($category);
error($message, $category)
debug($message, $category)
warn($message, $category)
info($message, $category)
isErrorEnabled($category)
isFatalEnabled($category)
isDebugEnabled($category)
Log is used to log application events. The implementation is a wrapper over log4php. All methods may be called in a static way.
fatal($message, $category)