view logger.inc @ 52:3898353ed1d8

Include fixes. sitemap don't print before everything has been processed. Make a class of accept-language.
author Tom Fredrik "BFG" Klaussen <bfg@blenning.no>
date Thu, 11 Oct 2012 00:48:46 +0200
parents 66382989353f
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);
}
?>