logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Malte.Kem...@de.equens.com>
Subject Funny Bbehaviour Wth A Customzed Appender
Date Thu, 15 Nov 2012 16:14:19 GMT
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.xm
l' as Input-File
2012-11-15 09:33:52,672 INFO
"xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120002.000.TXT.pacs08.xm
l" 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.xm
l' as Input-File
2012-11-15 09:33:52,719 INFO
"xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090004.000.TXT.pacs08.xm
l" 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.xm
l' as Input-File
2012-11-15 09:33:52,750 INFO
"xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090005.000.TXT.pacs08.xm
l" 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.xm
l' as Input-File
2012-11-15 09:33:52,781 INFO
"xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.090006.000.TXT.pacs08.xm
l" 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.xm
l' as Input-File
2012-11-15 09:33:52,813 INFO
"xsdError\x.C0100.MCP.SAG.SWIFT-MAX.AC.20121106.120001.000.TXT.pacs08.xm
l" 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


Mime
View raw message