add logging utilities to Plugin class

This commit is contained in:
Evan Prodromou 2009-12-04 15:34:25 -05:00
parent 99b23782ef
commit e074fe6599

View File

@ -76,4 +76,14 @@ class Plugin
{
return true;
}
protected function log($level, $msg)
{
common_log($level, get_class($this) . ': '.$msg);
}
protected function debug($msg)
{
$this->log(LOG_DEBUG, $msg);
}
}