I have a .Net WebApi project, I would like to store the logging for it (things like errors, information, stacktrackes). I’m not sure what a good place would be I read that I can use log4net and then store it on the same server the application is running on.
However, I read about Application Insight, but am still unsure if it’s to store application logging. Can Application Insight serve as an alternative to storing application logging on own server?
2
Answers
Not only that but many logging libraries enable you to send the telemetry to other destinations than the local server. log4net for example has an appender that exports the telemetry to application insights.
It is designed as a cloud based monitoring and logging solution so I wonder what your doubts are given you are still unsure it is capable of storing application logging. Try this to get started. If you can share what makes you unsure we might be able to address that.
Yes, You can use Application insight of Azure to storing the logs.
Several benefits of it:-
1:- Good Search capability 2: Query based searching 3: Periodically search 4: Default Azure benefits