M
mapnolo
Hi,
I have made a Java Application (Running on Tomcat 4.0.3 on AIX) which
writes a a log in a file (log = new PrintWriter(new
FileOutputStream("file.log")) and write the log this
way(log.println("Trace"); log.flush(), but i have a problem:
- From time to time, in order to reduce log file size , i use a script
to truncate the log file ( in Unix something like '> file.log'), but
after a while the file size is as big as it was (using 'ls -l'), so in
the end, i run out of disk space. I have tried this on HP-UX 11.0 and
on AIX 5.2, so i think it is an application problem. ¿Could you please
help me?.
- I have done the same things using C++ and it works perfectly.
Thanks in advance.
Manuel.
I have made a Java Application (Running on Tomcat 4.0.3 on AIX) which
writes a a log in a file (log = new PrintWriter(new
FileOutputStream("file.log")) and write the log this
way(log.println("Trace"); log.flush(), but i have a problem:
- From time to time, in order to reduce log file size , i use a script
to truncate the log file ( in Unix something like '> file.log'), but
after a while the file size is as big as it was (using 'ls -l'), so in
the end, i run out of disk space. I have tried this on HP-UX 11.0 and
on AIX 5.2, so i think it is an application problem. ¿Could you please
help me?.
- I have done the same things using C++ and it works perfectly.
Thanks in advance.
Manuel.