@Greg thanks for that - didn't imagine it would be incompatible but just had to
ask if someone's had experience using it.
@Thorbjørn
No unix machines have not been booted - it's been happening today and
about every second day before but machines were last rebooted 2/3 weeks ago.
I've only seen it start to happen after we upgraded to Java 1.6 and Weblogic
10.3.
Trying to pinpoint the problem but thought I'd ask the compatibility question
for log4j since I'd never considered that it would be incompatible.
We've even seen instances where the log files are missing entries from an
entire period
of time (midnight - 7am).
We are able to reproduce the problem with this code:
import java.io.File;
import java.io.FileWriter;
public class FileTest {
public static void main(String args[]) throws Exception {
File file1 = new File("test.file");
FileWriter writer1 = new FileWriter(file1);
for (int i = 0 ; i < 20 ; i++) {
writer1.write("Step 1 \n");
}
writer1.flush();
FileWriter writer2 = new FileWriter(file1);
for (int i = 0 ; i < 10 ; i++) {
writer2.write("Step 2 \n");
}
writer2.flush();
writer2.close();
for (int i = 0 ; i < 20 ; i++) {
writer1.write("Step 3 \n");
}
writer1.flush();
writer1.close();
which somehow suggests 2 logical file pointers to the one physical file.
But this is odd since we use AsyncAppenders for all of our logging (we have
about
5/6 AsyncAppenders for this 1 application) to log different events.
Lesley
-----Original Message-----
From: Thorbjørn Ravn Andersen [mailto:[email protected]]
Sent: Wednesday, 10 June 2009 4:51 PM
To: Log4J Users List
Subject: Re: log4j v1.2.14 compatible with Java 1.6?
Lesley Tay skrev den 10-06-2009 04:45:
> By weird I mean null characters being printed out to the log at random times:
>
Do these random times coincide with the machines being booted?
--
Thorbjørn Ravn Andersen "...plus... Tubular Bells!"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
NOTICE
This e-mail and any attachments are confidential and may contain copyright
material of Macquarie Group Limited or third parties. If you are not the
intended recipient of this email you should not read, print, re-transmit, store
or act in reliance on this e-mail or any attachments, and should destroy all
copies of them. Macquarie Group Limited does not guarantee the integrity of any
emails or any attached files. The views or opinions expressed are the author's
own and may not reflect the views or opinions of Macquarie Group Limited.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]