diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 20:52:35 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-11-10 20:52:35 +0100 |
| commit | 696fcd7ce4d495e356667019493bf312e2a6e47b (patch) | |
| tree | 3e8d60dad08dbe31660f2532d8ce893d35d50130 /src/phinde/Log.php | |
| parent | 9ff01ebe8cde0a07ad2a480d1a45eb1a29cb113d (diff) | |
| download | phinde-696fcd7ce4d495e356667019493bf312e2a6e47b.tar.gz phinde-696fcd7ce4d495e356667019493bf312e2a6e47b.zip | |
add log class
Diffstat (limited to 'src/phinde/Log.php')
| -rw-r--r-- | src/phinde/Log.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/phinde/Log.php b/src/phinde/Log.php new file mode 100644 index 0000000..2369a2b --- /dev/null +++ b/src/phinde/Log.php @@ -0,0 +1,23 @@ +<?php +namespace phinde; + +class Log +{ + public static function error($msg) + { + static::log($msg); + } + + public static function info($msg) + { + if ($GLOBALS['phinde']['debug']) { + static::log($msg); + } + } + + public static function log($msg) + { + echo $msg . "\n"; + } +} +?> |
