From: Evan Prodromou Date: Fri, 4 Dec 2009 20:34:25 +0000 (-0500) Subject: add logging utilities to Plugin class X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e074fe659903cb6cbd3dace96889f34a8c8796c9;p=quix0rs-gnu-social.git add logging utilities to Plugin class --- diff --git a/lib/plugin.php b/lib/plugin.php index 87d7be5a75..2c77c3e120 100644 --- a/lib/plugin.php +++ b/lib/plugin.php @@ -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); + } }