Page MenuHomePhabricator

No OneTemporary

diff --git a/phplib/logger.php b/phplib/logger.php
index 05b71ba..f833d63 100644
--- a/phplib/logger.php
+++ b/phplib/logger.php
@@ -1,29 +1,29 @@
<?php
require 'Monolog/autoload.php';
use Monolog\Logger;
use Monolog\Handler\SyslogHandler;
use Monolog\Formatter\LineFormatter;
global $logger;
$logger = new Logger('WEB');
$syslog = new SyslogHandler('cdrtool', 'local0');
$formatter = new LineFormatter("%channel%: %message% %extra%");
$syslog->setFormatter($formatter);
$logger->pushHandler($syslog);
-function log($message, $level = 'notice')
+function logger($message, $level = 'notice')
{
global $logger;
if ($level == 'notice') {
notice($message);
}
}
function notice($message)
{
- $global $logger;
+ global $logger;
$logger->notice($message);
}

File Metadata

Mime Type
text/x-diff
Expires
Tue, Nov 26, 4:42 AM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3414137
Default Alt Text
(814 B)

Event Timeline