I have an ASP.NET / MVC web site that can be deployed to
- IIS on premise
- IIS hosted by 3rd Party
- Azure WebSite
What is the best approach for logging so logs can be reviewed via azure but can still be reviewed via a log file.
I have used LOG4NET in the past for logging and its worked very well, wondering whats the best approach for Azure and if that approach works well for on premise.
My thinking is LOG4NET but configure it to log to Azure Diagnostics when hosted and just do some magic in the Web.Config when publishing to azure.
EDIT
I should have mentioned before, I don't want LOGS going out to the internet when the web is on premise, this makes application insights not usable.