[prev in list] [next in list] [prev in thread] [next in thread]
List: log4php-dev
Subject: [jira] [Created] (LOG4PHP-227) Throw an exception while using %request and sending parameter key as
From: "Priyank (JIRA)" <jira () apache ! org>
Date: 2016-04-13 4:05:25
Message-ID: JIRA.12958350.1460520271000.214993.1460520325475 () Atlassian ! JIRA
[Download RAW message or body]
Priyank created LOG4PHP-227:
-------------------------------
Summary: Throw an exception while using %request and sending parameter \
key as array Key: LOG4PHP-227
URL: https://issues.apache.org/jira/browse/LOG4PHP-227
Project: Log4php
Issue Type: Bug
Reporter: Priyank
I used conversation pattern "Request:[%request]" in log4php xml configuration file. \
When I'm sending request with parameters as an array it throw an exception instead of \
logging request.
Request example:
URL: {request URL}
Method: POST
Form data:
data[test1]=test
Exception trace:
A PHP Error was encountered
Severity: Notice
Message: Array to string conversion
Filename: pattern/LoggerPatternConverterSuperglobal.php
Line Number: 93
Backtrace:
File: \apache\log4php\src\main\php\pattern\LoggerPatternConverterSuperglobal.php
Line: 93
Function: _error_handler
File: \apache\log4php\src\main\php\pattern\LoggerPatternConverter.php
Line: 62
Function: activateOptions
File: \apache\log4php\src\main\php\helpers\LoggerPatternParser.php
Line: 179
Function: __construct
File: \apache\log4php\src\main\php\helpers\LoggerPatternParser.php
Line: 149
Function: getConverter
File: \apache\log4php\src\main\php\helpers\LoggerPatternParser.php
Line: 113
Function: addConverter
File: \apache\log4php\src\main\php\layouts\LoggerLayoutPattern.php
Line: 153
Function: parse
File: \apache\log4php\src\main\php\configurators\LoggerConfiguratorDefault.php
Line: 346
Function: activateOptions
File: \apache\log4php\src\main\php\configurators\LoggerConfiguratorDefault.php
Line: 299
Function: createAppenderLayout
File: \apache\log4php\src\main\php\configurators\LoggerConfiguratorDefault.php
Line: 201
Function: configureAppender
File: \apache\log4php\src\main\php\configurators\LoggerConfiguratorDefault.php
Line: 84
Function: doConfigure
File: \apache\log4php\src\main\php\Logger.php
Line: 543
Function: configure
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic