Hi,
I'm using log4j2-beta9 and want to configure it using a log4j2.xml in strict
mode. My issue is: how do I specify attributes that are not in the shipped
schema file? An Example:
?xml version=1.0 encoding=UTF-8 ?
Configuration
status=DEBUG
strict=true
monitorInterval=5
So basically when you want strict validation you want it really strict, i.e.
not only for the base types like appenders, filters but also their attributes?
As far as I understand that would result in a bigger schema where each type is
defined in the schema and the config looks more like the
Hi,
will do as soon as I got some spare time. I already checked out the trunk.
I have to admit that my solution is a bit dirty (imho) and there's a warning
when validating a config that uses KeyValuePairs on Appenders. When I make a
diff I'll patch the original classes and thus make sure that
Hi,
I'm not sure how to do implement it the right way. What I did in my project
was more like a hack (imho). I wanted quick results that are not so dirty that
I should feel bad. Therefore I reused KeyValuePair and just allowed them to
appear in an AppendersType and then put the name of a
Hi,
just checking if my previous mail went to spamfolder or something because I got
no feedback yet.
Best Regards,
Alex
-Ursprüngliche Nachricht-
Von: Rathai, Alexander
Gesendet: Donnerstag, 17. Oktober 2013 18:16
An: log4j-user@logging.apache.org
Betreff: AW: Log4j2 Appender
Hi,
Which configuration file are you using?
If you're using XML try this:
Configuration
status=debug...
You should then see something along the lines of
2013-10-24 14:03:09,332 DEBUG Calling createLogger on class
org.apache.logging.log4j.core.config.LoggerConfig$RootLogger for element
Hi,
I've got an Application that is deployed via Java Web Start.
I also have custom @Plugin(s) i.e. a LogEventPatternConverter. Log4j2 picks the
packages directive of the config but fails to collect the plugins when started
via Web Start.
2013-10-24 13:49:29,617 DEBUG Found Plugin Map at
Hi again,
this is all I could come up with.
I can't find another way but reflection atm.
This is so ugly. But it works.
Your thoughts on this?
Index:
src/main/java/org/apache/logging/log4j/core/config/plugins/ResolverUtil.java
===