Thursday, July 19, 2018

Logging frameworks and best practices

I have a feeling there is a whole world of logging out there and it just flew over my head.

I have experience with logging, however I have never used frameworks nor log files. It was a DIY effort:

  • homemade logging class,
  • logging into the same transactional database the rest of the product was using,
  • logging only exceptions (infrastructural stuff and business logic issues),
  • logging was not treated as a cross-cutting concern via attributes, but was woven into the business logic, mostly from within catch blocks.

I am getting more and more into Azure and the course talks about Diagnostic Logs, storing log files on the filesystem and Blob storage, so this all got me confused. The only logging framework I know of is Log4Net from some book I read on SOLID. We are now starting a brand new project and I would like to get some things right from the get-go.

What and how do you log stuff in your apps? What should I be on the lookout for? Any other pointers, tips?

Thank you.

Logging frameworks and best practices Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team