How to use the logging application block in Enterprise Library 3.0 , to log into a flat file
-
Hi all, Can you please tell me the way to write a log entry into a text file??? once i use the LogEntry object and the Logger object, i need the use the FlatFile TraceListener to write into a .txt file. where and how do i specify the tect file name?? Thanks, Ramesh
-
Hi all, Can you please tell me the way to write a log entry into a text file??? once i use the LogEntry object and the Logger object, i need the use the FlatFile TraceListener to write into a .txt file. where and how do i specify the tect file name?? Thanks, Ramesh
I am not sure you are using the application block ui. In the UI its pretty straight forward. Go to: Application Configuration-> Logging Application Block -> Trace Listeners In there add a new Flat File TraceListener. It give a file name option. The XML will look something like below:
rAm i Think, i Wait, i Fast -- Siddartha