[prev in list] [next in list] [prev in thread] [next in thread]
List: log4php-dev
Subject: [jira] [Updated] (LOG4PHP-200) Cannot find superglobal variable $_REQUEST
From: "Robert Schneider (JIRA)" <jira () apache ! org>
Date: 2012-12-19 13:55:13
Message-ID: JIRA.12624633.1355924437138.30170.1355925313618 () arcas
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/LOG4PHP-200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
Robert Schneider updated LOG4PHP-200:
-------------------------------------
Description:
I get the following warning in my browser:
Warning: log4php: LoggerPatternConverterRequest: Cannot find superglobal variable \
$_REQUEST. in /home/fa008rz5/www/home/_dev/rsn/lib/log4php/src/pattern/LoggerPatternConverterSuperglobal.php \
on line 76
This happens also sometimes with other superglobal variables.
I have mentioned it already on the mailing list a time ago. You can have a look here: \
http://mail-archives.apache.org/mod_mbox/logging-log4php-user/201211.mbox/%3C509A4B25.6030808@artworx.at%3E
My code:
----------------------------------------------
{code}
require_once __DIR__ . '/lib/log4php/src/Logger.php';
Logger::configure(array(
'appenders' => array(
'myAppender' => array(
'class' => 'LoggerAppenderRollingFile',
'layout' => array(
'class' => 'LoggerLayoutPattern',
'params' => array('conversionPattern' => '%date{d.m.Y H:i:s,u} %logger %-5level \
From:%server{REMOTE_ADDR}:%server{REMOTE_PORT} Request:[%request] %msg%n%ex')), \
'params' => array( 'file' => __DIR__ . '/../log/log.log',
'maxFileSize' => '1MB',
'maxBackupIndex' => '20'))),
'loggers' => array(),
'renderers' => array(),
'rootLogger' => array(
'level' => 'info',
'appenders' => array('myAppender'))));
$log = Logger::getRootLogger();
{code}
----------------------------------------------
Look into the attachment for the phpinfo output.
was:
I get the following warning in my browser:
Warning: log4php: LoggerPatternConverterRequest: Cannot find superglobal variable \
$_REQUEST. in /home/fa008rz5/www/home/_dev/rsn/lib/log4php/src/pattern/LoggerPatternConverterSuperglobal.php \
on line 76
This happens also sometimes with other superglobal variables.
I have mentioned it already on the mailing list a time ago. You can have a look here: \
http://mail-archives.apache.org/mod_mbox/logging-log4php-user/201211.mbox/%3C509A4B25.6030808@artworx.at%3E
My code:
----------------------------------------------
{code:php}
session_start();
require_once __DIR__ . '/lib/log4php/src/Logger.php';
Logger::configure(array(
'appenders' => array(
'myAppender' => array(
'class' => 'LoggerAppenderRollingFile',
'layout' => array(
'class' => 'LoggerLayoutPattern',
'params' => array('conversionPattern' => '%date{d.m.Y H:i:s,u} %logger %-5level \
From:%server{REMOTE_ADDR}:%server{REMOTE_PORT} Request:[%request] %msg%n%ex')), \
'params' => array( 'file' => __DIR__ . '/../log/log.log',
'maxFileSize' => '1MB',
'maxBackupIndex' => '20'))),
'loggers' => array(),
'renderers' => array(),
'rootLogger' => array(
'level' => 'info',
'appenders' => array('myAppender'))));
$log = Logger::getRootLogger();
{code}
----------------------------------------------
Look into the attachment for the phpinfo output.
> Cannot find superglobal variable $_REQUEST
> ------------------------------------------
>
> Key: LOG4PHP-200
> URL: https://issues.apache.org/jira/browse/LOG4PHP-200
> Project: Log4php
> Issue Type: Bug
> Affects Versions: 2.3.0
> Environment: PHP 5.4.8, Linux, Apache 64-bit
> Reporter: Robert Schneider
> Attachments: phpinfo.htm
>
>
> I get the following warning in my browser:
> Warning: log4php: LoggerPatternConverterRequest: Cannot find superglobal variable \
> $_REQUEST. in /home/fa008rz5/www/home/_dev/rsn/lib/log4php/src/pattern/LoggerPatternConverterSuperglobal.php \
> on line 76 This happens also sometimes with other superglobal variables.
> I have mentioned it already on the mailing list a time ago. You can have a look \
> here: http://mail-archives.apache.org/mod_mbox/logging-log4php-user/201211.mbox/%3C509A4B25.6030808@artworx.at%3E
> My code:
> ----------------------------------------------
> {code}
> require_once __DIR__ . '/lib/log4php/src/Logger.php';
> Logger::configure(array(
> 'appenders' => array(
> 'myAppender' => array(
> 'class' => 'LoggerAppenderRollingFile',
> 'layout' => array(
> 'class' => 'LoggerLayoutPattern',
> 'params' => array('conversionPattern' => '%date{d.m.Y H:i:s,u} %logger %-5level \
> From:%server{REMOTE_ADDR}:%server{REMOTE_PORT} Request:[%request] %msg%n%ex')), \
> 'params' => array( 'file' => __DIR__ . '/../log/log.log',
> 'maxFileSize' => '1MB',
> 'maxBackupIndex' => '20'))),
> 'loggers' => array(),
> 'renderers' => array(),
> 'rootLogger' => array(
> 'level' => 'info',
> 'appenders' => array('myAppender'))));
> $log = Logger::getRootLogger();
> {code}
> ----------------------------------------------
> Look into the attachment for the phpinfo output.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic