You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Szabolcs Beki (JIRA)" <ji...@apache.org> on 2012/09/28 11:13:09 UTC
[jira] [Created] (LOG4J2-92) Filter Configuration Error when using
KeyValuePair
Szabolcs Beki created LOG4J2-92:
-----------------------------------
Summary: Filter Configuration Error when using KeyValuePair
Key: LOG4J2-92
URL: https://issues.apache.org/jira/browse/LOG4J2-92
Project: Log4j 2
Issue Type: Bug
Components: Filters
Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
Environment: Win7
Reporter: Szabolcs Beki
When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
<DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
<KeyValuePair key="User1" value="DEBUG"/>
</DynamicThresholdFilter>
The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Commented] (LOG4J2-92) Filter Configuration Error when
using KeyValuePair
Posted by "Szabolcs Beki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465828#comment-13465828 ]
Szabolcs Beki commented on LOG4J2-92:
-------------------------------------
Thanks for quick answer.
The other similar issue is with MapFilter.
<MapFilter onMatch="ACCEPT" onMismatch="NEUTRAL" operator="or">
<KeyValuePair key="case-id" value="4"/>
<KeyValuePair key="case-id" value="5"/>
</MapFilter>
results to :
2012-09-28 20:41:17,715 ERROR filter MapFilter has no parameter that matches element KeyValuePair
2012-09-28 20:41:17,716 ERROR filter MapFilter has no parameter that matches element KeyValuePair
2012-09-28 20:41:17,717 ERROR keys and values must be specified for the MapFilter
Null object returned for MapFilter
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Commented] (LOG4J2-92) Filter Configuration Error when
using KeyValuePair
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13465685#comment-13465685 ]
Ralph Goers commented on LOG4J2-92:
-----------------------------------
Changing to a documentation issue. DynamicThresholdFilter uses a ValueLevelPair, not a KeyValuePair. It should be configured as
<DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
<ValueLevelPair key="User1" threshold="DEBUG"/>
</DynamicThresholdFilter>
Can you provide other instances where KeyValuePair is used where it isn't working?
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Resolved] (LOG4J2-92) Filter Configuration Error when using
KeyValuePair
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers resolved LOG4J2-92.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0-beta2
Assignee: Ralph Goers
Converted DynamicThresholdFilter to use KeyValuePairs. Modified Map-based filters to allow multiple values for a key to be specified. Corrected MapFilter's declaration of the KeyValuePair array to be a PluginElement instead of a PluginAttr
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
> Assignee: Ralph Goers
> Fix For: 2.0-beta2
>
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Commented] (LOG4J2-92) Filter Configuration Error when
using KeyValuePair
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475679#comment-13475679 ]
Ralph Goers commented on LOG4J2-92:
-----------------------------------
Please verify the fix and close it.
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
> Assignee: Ralph Goers
> Fix For: 2.0-beta2
>
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Updated] (LOG4J2-92) Filter Configuration Error when using
KeyValuePair
Posted by "Ralph Goers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ralph Goers updated LOG4J2-92:
------------------------------
Component/s: Documentation
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org
[jira] [Closed] (LOG4J2-92) Filter Configuration Error when using
KeyValuePair
Posted by "Szabolcs Beki (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LOG4J2-92?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Szabolcs Beki closed LOG4J2-92.
-------------------------------
I tested it and it works fine.
> Filter Configuration Error when using KeyValuePair
> ---------------------------------------------------
>
> Key: LOG4J2-92
> URL: https://issues.apache.org/jira/browse/LOG4J2-92
> Project: Log4j 2
> Issue Type: Bug
> Components: Documentation, Filters
> Affects Versions: 2.0-alpha1, 2.0-alpha2, 2.0-beta2
> Environment: Win7
> Reporter: Szabolcs Beki
> Assignee: Ralph Goers
> Fix For: 2.0-beta2
>
>
> When trying to configure DynamicThresholdFilter or StructuredDataFilter via XML according to the documentation on Filters, I get this error message from log4j2 :
> ERROR filter DynamicThresholdFilter has no parameter that matches element KeyValuePair
> <DynamicThresholdFilter key="loginId" defaultThreshold="ERROR" onMatch="ACCEPT" onMismatch="NEUTRAL">
> <KeyValuePair key="User1" value="DEBUG"/>
> </DynamicThresholdFilter>
> The problem seems to be present at other filters as well, where KeyValuePair is used.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org