Click here to Skip to main content
15,891,607 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I used Log4Net in my project (It's a Windows Service) for logging, i want to know is there any way to schedule Log4Net to log automatically ?
Posted
Comments
Dave Kreskowiak 24-Jun-14 7:42am    
Your question makes no sense.

Are you asking how to automatically rollover the log to a new file when a certain condition is met, such as a certain file size is met or the daytime rolls over midnight?
Member 10315646 24-Jun-14 7:50am    
Yes ,, exactly i want this
Kishor Deshpande 24-Jun-14 7:49am    
Automatically?
You call methods at places where you want to log using Log4Net, isn't that automatic?

1 solution

Use the RollingFileAppender[^]. More[^].
 
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