Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F7170447
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
814 B
Referenced Files
None
Subscribers
None
View Options
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
Details
Attached
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)
Attached To
Mode
rCDRT CDRTool
Attached
Detach File
Event Timeline
Log In to Comment