comparison 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
comparison
equal deleted inserted replaced
46:15879e2aab65 47:66382989353f
1 <?php
2 function logMsg($level, $msg)
3 {
4 if (DEBUG_LEVEL >= $level) {
5 print $msg;
6 if(ABORT_ON_LOG)
7 exit;
8 }
9 }
10
11 function warn($msg)
12 {
13 logMsg(VERBOSITY_WARNING, $msg);
14 }
15 ?>