Mercurial > SimpleWebPresenter
diff Logger.inc @ 66:74f7b64bdb78
Lots of documentation fixes, and removal of unused function getXmlContent
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 22:11:33 +0200 |
| parents | 7b87ec8b0842 |
| children |
line wrap: on
line diff
--- a/Logger.inc Thu Oct 11 20:36:24 2012 +0200 +++ b/Logger.inc Thu Oct 11 22:11:33 2012 +0200 @@ -1,9 +1,14 @@ <?php /** - * @file * Common access point for logging */ class Logger { + /** + * All logging goes through this function + * + * @param $level the severity level of this message + * @param $msg message to be logged + */ static function msg($level, $msg) { if (DEBUG_LEVEL >= $level) { @@ -13,6 +18,11 @@ } } + /** + * Convenience function, logs a message with level VERBOSITY_WARNING + * + * @param $msg message to be logged + */ static function warn($msg) { self::msg(VERBOSITY_WARNING, $msg);
