Author: V&G | Posted on: 11/5/2008 9:25:47 PM | Views : 708

Hello all,

I need to write log to files with some specific file name convention.

My problem is that if I use Rolling listener configured convention takes place from second tine and the first one has a base file name. For example:

1st: trace.log

2nd: trace.2008-11-06.1.log

3rd: trace.2008-11-06.2.log

etc.

As I say, the problem is a first file of the batch.

I don't wont to change the EntLib for obvious reasons.

I looked for subclassing from Rolling listener but for file name generation it uses its child class StreamWriterRollingHelper and this class declared as internal and sealed (for some reason I can't understand...)

is there any way to define first file name as others?



 

Thanks to all ahead,

 
...

Go to the complete details ...