Adding a CMS to Your Pyramid Web App Transcripts
Chapter: Logging user and system activity
Lecture: Current logging with LogBook
Login or
purchase this course
to watch this video and the rest of the course contents.
0:00
There's a lot of different logging vibrators for Python. Python has a built in one. I don't really love how it works. It's kind of I'm not a huge fan.
0:08
Let's just say that we're gonna be using this project. This package called Logbook.
0:13
This is written by the same guy who created Flask, actually, and it will push notifications and messages to all sorts of fun things.
0:20
So it's a really nice, simple logging thing that a log to like standard out like print. But it will also logged the files.
0:27
It can even logged like messages to phones for, like critical errors or other other crazy stuff like that if you want to plug it in.
0:34
So I've gone through. And I've actually already added this to our Web app because the point is not to show you how to do logging for a Web app.
0:43
I'm assuming you probably have that, and if not, this is really simple. You can just take it and follow along.
0:48
What we want to talk about is just making sure we're doing the Logging one and then two.
0:53
We want to make sure that we want to plug in that mark down subsystem, logging into it and control it as you want it to happen.