Hi Malte, You should probably file a Bugzilla issue but I am not sure how much help you'll get here because you are using custom code. There you can attach all the files you want.
Can this be reproduced in any way with a stock appender of any type like a rolling file appender? The best way to get anyone to help is to create a standalone program that illustrates the problem. Ideally, it should be a unit test that fails. Another question that will come up is, does using the current version, 1 .2.17, work better? Differently? Gary On Thu, Nov 15, 2012 at 11:14 AM, <[email protected]> wrote: > ** > Hi to all, > I have programmed an appender dirived from FileAppender, that is able to > produce log-files with file names that you can controll in a more flexible > way. > You can use an other String, for example the input file, or parts of it > to produce your desired log file name, seq-numbers and time stamps etc. > > My applcation, that got the log-config (actually the xml configuration > type) is a mroe infratstuctional Programm, that calls other applications > like converters. > I have put all in one single log-configuration-file using the cusomized > appender on several file processing applcations. > > The confguration is like this, that each processed file is suppose to > produce one log file per application that is processing it. > > For *one* application it works pretty good. Ror another it produces each > expected log file but produces the logs* for all turns* only in one file. > The others stay empty. > > > > I am not sure what I am doing wrong and what is going on here. I cannot > understand why in one case it works (s.FEDCONV...log) , in the other it > does not at all (s. XSDCHECK...log). > > here the contend of the only filled XSDCHECK...log (XSDCHECK.x.* > C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120001.000.TXT*.log) > 2012-11-15 09:33:52,594 INFO ***************************************** > 2012-11-15 09:33:52,594 INFO * XSD-Checker V 1.0 * > 2012-11-15 09:33:52,594 INFO ***************************************** > 2012-11-15 09:33:52,610 INFO using 'C:\tmp\Neuer > Ordner\FED-Local\filedemon-fed-test\xsds\pacs.008.001.01.xsd' as XSD-File > 2012-11-15 09:33:52,610 INFO using > 'xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120002.000.TXT.pacs08.xml' > as Input-File > 2012-11-15 09:33:52,672 INFO > "xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120002.000.TXT.pacs08.xml" > is valid. > 2012-11-15 09:33:52,688 INFO ***************************************** > 2012-11-15 09:33:52,688 INFO * XSD-Checker V 1.0 * > 2012-11-15 09:33:52,688 INFO ***************************************** > 2012-11-15 09:33:52,688 INFO using 'C:\tmp\Neuer > Ordner\FED-Local\filedemon-fed-test\xsds\pacs.008.001.01.xsd' as XSD-File > 2012-11-15 09:33:52,688 INFO using > 'xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090004.000.TXT.pacs08.xml' > as Input-File > 2012-11-15 09:33:52,719 INFO > "xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090004.000.TXT.pacs08.xml" > is valid. > 2012-11-15 09:33:52,719 INFO ***************************************** > 2012-11-15 09:33:52,719 INFO * XSD-Checker V 1.0 * > 2012-11-15 09:33:52,735 INFO ***************************************** > 2012-11-15 09:33:52,735 INFO using 'C:\tmp\Neuer > Ordner\FED-Local\filedemon-fed-test\xsds\pacs.008.001.01.xsd' as XSD-File > 2012-11-15 09:33:52,735 INFO using > 'xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090005.000.TXT.pacs08.xml' > as Input-File > 2012-11-15 09:33:52,750 INFO > "xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090005.000.TXT.pacs08.xml" > is valid. > 2012-11-15 09:33:52,750 INFO ***************************************** > 2012-11-15 09:33:52,766 INFO * XSD-Checker V 1.0 * > 2012-11-15 09:33:52,766 INFO ***************************************** > 2012-11-15 09:33:52,766 INFO using 'C:\tmp\Neuer > Ordner\FED-Local\filedemon-fed-test\xsds\pacs.008.001.01.xsd' as XSD-File > 2012-11-15 09:33:52,766 INFO using > 'xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090006.000.TXT.pacs08.xml' > as Input-File > 2012-11-15 09:33:52,781 INFO > "xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090006.000.TXT.pacs08.xml" > is valid. > 2012-11-15 09:33:52,781 INFO ***************************************** > 2012-11-15 09:33:52,781 INFO * XSD-Checker V 1.0 * > 2012-11-15 09:33:52,797 INFO ***************************************** > 2012-11-15 09:33:52,797 INFO using 'C:\tmp\Neuer > Ordner\FED-Local\filedemon-fed-test\xsds\pacs.008.001.01.xsd' as XSD-File > 2012-11-15 09:33:52,797 INFO using > 'xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120001.000.TXT.pacs08.xml' > as Input-File > 2012-11-15 09:33:52,813 INFO "xsdError\x.* > C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120001.000.TXT.pacs08.xml*" is valid. > > here the content was filled obviously in the log-file of the last File > beeing processed, instead of puting them to each log, that has already been > produced. > > Please find attached the source code of the appender and dependings > (*.java) , the configuration(log4j.xml), and an example of the logging of > log4j itself (log4j-log-log). > I am using log4j version log4j*-1.2.15*.jar > > > Best regards and thanks for any hints in advance > > Malte > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > -- E-Mail: [email protected] | [email protected] JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0 Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK Blog: http://garygregory.wordpress.com Home: http://garygregory.com/ Tweet! http://twitter.com/GaryGregory
