Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have created a console app in which logging is done correctly using log4net, while debuging. But after publishing my app (Click once app or .exe) logging is not working, even though my application is working fine.

Is there any way to make log4net work in my final click-once app?
Posted
Updated 7-May-13 0:24am
v2
Comments
tumbledDown2earth 7-May-13 6:57am    
Please share the l4n configurations
Prasad Khandekar 7-May-13 10:07am    
Are you using attributes to configure log4net? If so please read the FAQ available on log4net site.
Bernhard Hiller 8-May-13 4:35am    
Where do you expect the logfile to be found? on C:\?
Did you check that the log4net dlls are properly deployed with your application?

1 solution

You can also take a look at my article : Mini Drop-in Replacement for log4net[^]
 
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