Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
My project defines few log files which are made at runtime. Now I have to define their paths in web.config file where initially it should be disabled.

Now when the global.asax would be executed on runtime, it should read the value from web.config and fetch it and disable the log function.

If the user changes that setting to true or 1, it should enable the logging function.

Is there a way where I can custom define the logging function in my web.config file?
And how will I call that in my global.asax?
Posted
Comments
Mahesh Bailwal 30-Aug-13 8:28am    
Are you getting some error in acheving that or you want to know the syntax for reading values from web.config file?

And also share you loging code.

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