Mercurial > SimpleWebPresenter
view 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 source
<?php function logMsg($level, $msg) { if (DEBUG_LEVEL >= $level) { print $msg; if(ABORT_ON_LOG) exit; } } function warn($msg) { logMsg(VERBOSITY_WARNING, $msg); } ?>
