Log file thresholds

Topics: Logging Application Block
Jun 23, 2008 at 11:53 AM
Hi!

I am using the Logging application block with flat file listener.
Most likely I would want to put some thresholdes for that file, e.g. filze size <= 10MB and keep last 10 log files.

How could I configure that?


Thanks,
Edijs
Jun 23, 2008 at 2:28 PM
Hi Edjis,

You would use the rolling flat file trace listener and specify the RollSizeKB to 10240. Unfortunately, you cannot specify how many logs you want to keep.

Hope this helps,
Fernando


eddpeterson wrote:
Hi!

I am using the Logging application block with flat file listener.
Most likely I would want to put some thresholdes for that file, e.g. filze size <= 10MB and keep last 10 log files.

How could I configure that?


Thanks,
Edijs