0

I am a Junior developer and I have been tasked with installing Log4Net in my app and getting it working. That part is done. My question is What should I be loggining.

It seems very broad and I am mainly looking for an article/blog post/book that really says what to log or why you log specific events. I realize this could be very opinion laden but when I am googling around for an answer everyone says you should do it not why/what specifically you should log.

4

1 回答 1

1

I was recently given a similar task and felt the same way. I had to add logging to an installer. I logged the date and time the install was started, when it was completed and if it was completed successfully. I also log exceptions so I know where the install failed if it does and why.

于 2013-04-19T13:41:03.207 回答