[
https://issues.apache.org/jira/browse/LOG4J2-1313?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15487278#comment-15487278
]
Leon Finker edited comment on LOG4J2-1313 at 9/13/16 1:54 PM:
--------------------------------------------------------------
Thank you Remko! The issue I reported is fixed. Just to clarify our use case:
{noformat}
<Property name="nagiosIgnoreRegex">some known pattern to ignore here</Property>
<Property name="nagiosAdditionalIgnoreRegex"></Property>
<NagiosAppender name="Nagios" maxMessageLength="255">
<RegexFilterEx
regex="${nagiosIgnoreRegex}${sys:nagiosAdditionalIgnoreRegex}" onMatch="DENY"
onMismatch="ACCEPT" />
</NagiosAppender>
{noformat}
So we have some known errors patterns to ignore as standard across some
services and then optionally services can ignore more service specific patterns
by specifying System property, but if none specified it would be empty string.
was (Author: leonfin):
Thank you Remko! The issue I reported is fixed. Just to clarify our use case:
<Property name="nagiosIgnoreRegex">some known pattern to ignore here</Property>
<Property name="nagiosAdditionalIgnoreRegex"></Property>
<NagiosAppender name="Nagios" maxMessageLength="255">
<RegexFilterEx
regex="${nagiosIgnoreRegex}${sys:nagiosAdditionalIgnoreRegex}" onMatch="DENY"
onMismatch="ACCEPT" />
</NagiosAppender>
So we have some known errors patterns to ignore as standard across some
services and then optionally services can ignore more service specific patterns
by specifying System property, but if none specified it would be empty string.
> <Property name="" value="" /> not working
> -----------------------------------------
>
> Key: LOG4J2-1313
> URL: https://issues.apache.org/jira/browse/LOG4J2-1313
> Project: Log4j 2
> Issue Type: Bug
> Affects Versions: 2.5
> Reporter: Philipp Knobel
> Assignee: Remko Popma
> Fix For: 2.7
>
>
> The documentation shows examples of the property tag like this
> ([http://logging.apache.org/log4j/2.x/manual/configuration.html#ConfigurationSyntax]):
> {noformat}
> <Properties>
> <Property name="name1">value</property>
> <Property name="name2" value="value2"/>
> </Properties>
> {noformat}
> When using the later one with the value attribute you'll get on startup this
> error:
> {noformat}
> ERROR Property contains an invalid element or attribute "value"
> {noformat}
> It would be good to have the attribute support working as well, as otherwise
> it might happen that IDE auto formatting is line breaking an attribute. If
> this isn't possible please update the documentation.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]