summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-04 15:34:25 -0500
committerEvan Prodromou <evan@status.net>2009-12-04 15:34:25 -0500
commite074fe659903cb6cbd3dace96889f34a8c8796c9 (patch)
tree36db63951d2a367f6613ddcff74984152a316edb /lib
parent99b23782ef871d774e0c4abffc3632ea70ee149a (diff)
add logging utilities to Plugin class
Diffstat (limited to 'lib')
-rw-r--r--lib/plugin.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/plugin.php b/lib/plugin.php
index 87d7be5a7..2c77c3e12 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);
+ }
}