Hi,
I am using Enterprise library 3.1 logging block with C# and framework 2.0. I have a listner configured for writing log to flat file. The settings for this is configured in app.config as follows:
Is there any way to access the fileName ("D:\log\trace.log") provided in this config file in the application?
I want to change the filename if it exceeds to some filesize limit.
Thanks a lot,
Prashant
Sharing the best from my side...
--Prashant--
I am using Enterprise library 3.1 logging block with C# and framework 2.0. I have a listner configured for writing log to flat file. The settings for this is configured in app.config as follows:
Code:
<add fileName="D:\log\trace.log" header="----------------------------------------"
footer="----------------------------------------" formatter="Text Formatter"
listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.FlatFileTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
traceOutputOptions="Timestamp" type="Microsoft.Practices.EnterpriseLibrary.Logging.TraceListeners.FlatFileTraceListener, Microsoft.Practices.EnterpriseLibrary.Logging, Version=3.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"
name="FlatFile TraceListener" />
Is there any way to access the fileName ("D:\log\trace.log") provided in this config file in the application?
I want to change the filename if it exceeds to some filesize limit.
Thanks a lot,
Prashant
Sharing the best from my side...
--Prashant--