Mercurial > SimpleWebPresenter
view logger.inc @ 56:0f1e08cdfff2
Move accept-language to Language to reflect new class name.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 01:07:17 +0200 |
| parents | 2cfea6e84694 |
| children | 164268b4e0d9 |
line wrap: on
line source
<?php /** * @file * Common access point for logging */ function logMsg($level, $msg) { if (DEBUG_LEVEL >= $level) { print $msg; if(ABORT_ON_LOG) exit; } } function warn($msg) { logMsg(VERBOSITY_WARNING, $msg); } ?>
