Re: Log files rename failed

2014-01-21 Thread Ralph Goers
Are we looking at the same code? First, File.renameTo doesn’t throw exceptions when the rename fails. It returns false. In Java 7 we can use Files.move(). We should update the code to use that if running on Java 7. Second, if renameTo fails we try to copy the file and then delete it. If thos

Re: Log files rename failed

2014-01-21 Thread Gary Gregory
On Tue, Jan 21, 2014 at 9:42 PM, Steven Yang wrote: > I have observed a file-rename issue while using rolling appender. > I am using log4j2-beta9. > This main reason I switched to log4j2 is because the same problem occurs in > log4j 1.x and the only way to fix it is to modify the source which is

Log files rename failed

2014-01-21 Thread Steven Yang
I have observed a file-rename issue while using rolling appender. I am using log4j2-beta9. This main reason I switched to log4j2 is because the same problem occurs in log4j 1.x and the only way to fix it is to modify the source which is something we dont want to do unless it's the last option, whil

software does not neutralize output that is logged

2014-01-21 Thread Saibabu Vallurupalli
Hi, I am working on an issue related to logging. I our application we are using log4j for logging and we detected our software doesn't neutralize out properly. Now, Is there any way without modifying the entire source by going through each and every class we can achieve this functionality of inspe

Re: Servlet 2.5 compatibility - Log4jServletContainerInitializer

2014-01-21 Thread Dave Levitt
Did a bit of research on Jira - this is issue LOG4J2-359 On Tue, Jan 21, 2014 at 11:15 AM, Dave Levitt wrote: > I'm trying to add log4j 2.x to a Servlet 2.5 web app. > > One goal is to also be able to deploy the artifact on a Servlet 3.x > conta

Servlet 2.5 compatibility - Log4jServletContainerInitializer

2014-01-21 Thread Dave Levitt
I'm trying to add log4j 2.x to a Servlet 2.5 web app. One goal is to also be able to deploy the artifact on a Servlet 3.x container as the servers are migrated [from JBoss 5.x to 7]. When testing on JBoss 7.1, an exception is thrown from Log4jServletContainerInitializer [line 49] as the servlet c