Adding a CMS to Your Flask Web App Transcripts
Chapter: Logging activity
Lecture: Concept: Logger integration

Login or purchase this course to watch this video and the rest of the course contents.
0:00 if you do have a proper logging system in your Web app, and I recommend that you do,
0:05 because it's really important to know what's going on with your certain on your with your
0:09 APP on your server, you probably should go ahead and take the time to integrate markdown subsystems, logging bits with what you're already doing.
0:16 So with this one class, this is basically it. You just go through and say, I want to override a couple of methods one right over I trace for bows and
0:25 bow and so on, And then you just check. Should I log at this given level yes or no?
0:31 And then if you should just go ahead and log that message to your logging framework
0:36 of choice. Here we've created a logbook lager and in the trace one we say logbook, logbook blogger dot trace in the info one.
0:44 We say it logbook longer dot info, and that means it just passes those messages on to our underlying pre configured logging system
0:52 Whether that's going toe files, whether that's going to standard out or whether it's going nowhere, this will go ahead and take care of that for you.

Talk Python's Mastodon Michael Kennedy's Mastodon