Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Alexander.Rathai
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

Re: Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Gary Gregory
Alexander , XML validation against the XML Schema is not fully baked because the Log4j 2 XML Schema is incomplete. Due to the current dynamic nature of the configuration file (it's schema is tied to the Java code and the annotations used), we need to generate the XML Schema based on these

AW: Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Alexander.Rathai
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

Re: Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Gary Gregory
The current idea I have is that the XML Schema would reflect exactly the code that is running. We should start with that. AFAIK, the current code we have does not allow open-ended XML fragments, but I could be wrong... Gary On Mon, Oct 14, 2013 at 10:25 AM, alexander.rat...@materna.de wrote:

Re: Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Ralph Goers
On Oct 14, 2013, at 7:31 AM, Gary Gregory garydgreg...@gmail.com wrote: The current idea I have is that the XML Schema would reflect exactly the code that is running. We should start with that. AFAIK, the current code we have does not allow open-ended XML fragments, but I could be wrong...

Re: Log4j2 Appender attributes with strict xml config

2013-10-14 Thread Gary Gregory
On Mon, Oct 14, 2013 at 11:10 AM, Ralph Goers ralph.go...@dslextreme.com wrote: On Oct 14, 2013, at 7:31 AM, Gary Gregory garydgreg...@gmail.com wrote: The current idea I have is that the XML Schema would reflect exactly the code that is running. We should start with that. AFAIK, the current

Re: roll over strategy question

2013-10-14 Thread Arkin Yetis
Hi, I can't seem to get the DefaultRolloverStrategy to work with the following configuration. Is there anything I am doing wrong? Thanks, Arkin ?xml version=1.0 encoding=UTF-8? configuration status=info name=ABC appenders RollingFile name=localFile fileName=test.log