Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-07 Thread Remko Popma
Thanks for the clarification. Remko Sent from my iPhone > On 2016/01/07, at 12:01, Anshu Garg1 wrote: > > Hi Remko, > > We will still be using Log4j1.2.17 , for > > 1. Our logging application's first version was already using Log4j 1.2.17 > , which was only logging

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-06 Thread Anshu Garg1
-Thanks & Regards, Anshu Garg Platform Technology Center, India Phone: 8800096760 E-mail: anshug...@in.ibm.com From: Remko Popma To: Log4J Users List Date: 01/06/2016 04:22 AM Subject:Re: Using log4j1.2.17 foter is not

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-06 Thread Remko Popma
Anshu, What are your plans going forward? Out of the 6 issues you raised, you've solved one yourself (custom Message), two have been addressed in recent Jiras (LOG4J2-908 and LOG4J2-1244 ), and

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-06 Thread Anshu Garg1
Hi Remko, We will still be using Log4j1.2.17 , for 1. Our logging application's first version was already using Log4j 1.2.17 , which was only logging TEXT format logs and Log4j 1.2.17 so now that JSON format is working fine with it too, we'll not upgrade to Log4j 2 2. We have already reached

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Anshu Garg1
Hi, Due to limited time left now for us to complete our logging application, today we finally achieved valid JSON files with Log4j1 itself, of course it is not without few undesired restrictions we put on format. We implemented an Action class to open a log file and write footer to it. This

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Ralph Goers
Remember, you can now use the CronTriggeringPolicy which does not use the filePattern. Ralph > On Jan 5, 2016, at 6:49 AM, Remko Popma wrote: > > FWIW, decoupling the filePattern from the rollover frequency is one of the > things I had in mind with > > 1. LOG4J2-1198

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Remko Popma
FWIW, decoupling the filePattern from the rollover frequency is one of the things I had in mind with 1. LOG4J2-1198 . On Tuesday, 5 January 2016, Gary Gregory wrote: > On Mon, Jan 4, 2016 at 11:04 PM, Anshu Garg1

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Simon Park
FWIW, if you're stuck on Log4J 1.2.17, you could use the TimeAndSizeRollingAppender available from www.simonsite.org.uk to solve this use case. Best Regards, Simon Sent from my iPad > On 5 Jan 2016, at 06:14, Anshu Garg1 wrote: > > Hi, > > We have extended

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Gary Gregory
On Tue, Jan 5, 2016 at 2:51 PM, Remko Popma wrote: > Thanks for raising these issues. In addition to Gary's response, can I ask > some more questions to clarify? > > 1. Does LOG4J2-1101 > capture > your first requirement

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-05 Thread Remko Popma
Thanks for raising these issues. In addition to Gary's response, can I ask some more questions to clarify? 1. Does LOG4J2-1101 capture your first requirement for a date in the pre-rollover file name? 3. I believe you are already verifying the

Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-04 Thread Anshu Garg1
Hi, We have extended patternlayout to set custom footer and header. Now when we use this pattern in rolling file appender footer is only added to last log file generated while header is added to all files. Our requirement is to have footer also added to files created. Any suggestion? Here is

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-04 Thread Ralph Goers
Please see https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces . Ralph > On Jan 4, 2016, at 11:14 PM, Anshu Garg1 wrote: > > Hi, > > We have extended

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-04 Thread Anshu Garg1
Hi Ralph, We have actually tried log4j2, but unfortunately with that also we could not meet our requirements We are trying a JSON log using rolling file appender based on both time and size but we are facing below challenges 1. Apache log4j2 default roll over implementation adds time stamp

Re: Using log4j1.2.17 foter is not getting added to each log file in rollingfileappender

2016-01-04 Thread Gary Gregory
On Mon, Jan 4, 2016 at 11:04 PM, Anshu Garg1 wrote: > Hi Ralph, > > We have actually tried log4j2, but unfortunately with that also we could > not meet our requirements > > We are trying a JSON log using rolling file appender based on both time > and size but we are