Mercurial > SimpleWebPresenter
diff logger.inc @ 47:66382989353f
Extract baseDir only once.
Function for generating cacheset.
Added logger functionality.
Removed hardcoded location for flagScript.
BUGFIX: masterdocument was not added to the cacheset.
BUGFIX: When two options existed next to eachother, the last was not
read.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Mon, 08 Oct 2012 17:35:08 +0200 |
| parents | |
| children | 2cfea6e84694 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/logger.inc Mon Oct 08 17:35:08 2012 +0200 @@ -0,0 +1,15 @@ +<?php +function logMsg($level, $msg) +{ + if (DEBUG_LEVEL >= $level) { + print $msg; + if(ABORT_ON_LOG) + exit; + } +} + +function warn($msg) +{ + logMsg(VERBOSITY_WARNING, $msg); +} +?> \ No newline at end of file
