Ejemplo n.º 1
0
function cli_msglog($str)
{
    global $log_channel, $BETA;
    if (!empty($log_channel)) {
        notify_web($log_channel, array($str), $BETA);
    }
    printf("%s\n", $str);
    //error_log($str);
}
Ejemplo n.º 2
0
 function doLog($msg)
 {
     if (empty($this->log_channel)) {
         echo $msg;
     } else {
         notify_web($this->log_channel, array($msg));
     }
 }