add logging utilities to Plugin class
This commit is contained in:
parent
99b23782ef
commit
e074fe6599
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user