Click here to Skip to main content
15,921,884 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Microsoft.Enterprise Library dll. I want to write the log as separate files date wise.Right Now all are logged in the single Log file configured in App.Config.
Posted
Updated 28-Dec-15 19:39pm
v2
Comments
Check out the code which creates the log file. Update that code to create date wise. Simple.

1 solution

Hi Korathu,

You may have to write custom trace listener, which drive from CustomTraceListener then configure it in your config file.

You can decide when to create separate file, format of data to log and filter...etc

Refer this Extending the Logging Application Block[^] article.

Thanks,
Sathish
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900