DevQuestions with Tim Corey · Tim Corey
How do I know what to log in my application? What information is important to capture in logs? How do I avoid security implications in logging? Should I log to the console in a web app? These are the questions we will answer in today's episode of DevQuestions. Website: https://www.DevForge.com/ Ask Your Question: https://suggestions.iamtimcorey.com/ Sign Up to Get More Great Developer Content in Your Inbox: https://signup.iamtimcorey.com/
0:05SPEAKER_00Logging lets us know where the problems are happening.
0:09SPEAKER_00It also lets us see how our app is being used.
0:12SPEAKER_00But if you aren't careful, logging can actually make it harder to understand where the problems are occurring and how your application is being used.
0:19SPEAKER_00So let's talk about how to properly implement logging in a way that will actually benefit our application in today's episode of Dev Questions.
0:35SPEAKER_00Software development is more than just writing code.
0:38SPEAKER_00So let's talk about the rest of it.
0:40SPEAKER_00Specifically, let's talk about how to properly implement logging.
0:44SPEAKER_00And let's start with an illustration.
0:45SPEAKER_00Back when I was a very new IT director at a small college, I was working with my network administrator to implement server logging.
0:54SPEAKER_00Up until that point, we didn't have any central logging.
0:57SPEAKER_00Errors were discovered by the users or, you know, but we stumbled across them, or maybe if we looked through the event viewer.
1:06SPEAKER_00And we had a full network with Active Directory and Exchange Server and SQL Server and File Servers and all the rest.
1:14SPEAKER_00So we we found this software that would centrally manage all these logs.
1:20SPEAKER_00It would track the different things going on in our servers.
1:23SPEAKER_00It would make sure that it looked out for things like, hey, you got low disk space on this server, or hey, this server is hitting a very high CPU all day long, or we've got a bottleneck in memory here, or whatever the case may be.