R
Rahul
Hi,
I am using Microsoft Enterprise Logging Application block. I am using a flat
file listener to log the exceptions. Now the problem I am having is that the
log file is becoming too big. What are the options that I have to handle
this problem.
1) I could run a scheduler to periodically archive the log file, but when
IIS is running I am unable to do that as it gives an exception that the file
is being used by another program.
2) I could modify the code in the application block to append the date to
the log file. But the name of the file will only get changed when the
application pool recycles or if the IIS is restarted.
What other options do I have.
Thanks
Rahul
I am using Microsoft Enterprise Logging Application block. I am using a flat
file listener to log the exceptions. Now the problem I am having is that the
log file is becoming too big. What are the options that I have to handle
this problem.
1) I could run a scheduler to periodically archive the log file, but when
IIS is running I am unable to do that as it gives an exception that the file
is being used by another program.
2) I could modify the code in the application block to append the date to
the log file. But the name of the file will only get changed when the
application pool recycles or if the IIS is restarted.
What other options do I have.
Thanks
Rahul