view logger.inc @ 51:2cfea6e84694

Documentation update.
author Tom Fredrik Blenning Klaussen <bfg@blenning.no>
date Thu, 11 Oct 2012 00:06:26 +0200
parents 66382989353f
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);
}
?>