diff options
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"; + } +} +?> |
