I’m just noting this down because I had to do a lot of reading to get this right. Now that I’m actually using log libraries in a good way for my scripts, I want to dial up and down the log level easily – but setting the loglevel on my overall script to debug makes EVERYTHING output, and I don’t really need every library’s output. I’m sure there’s a better way to control the log level of a specific logger for my script from the command line, but this works for me in a quick and dirty way.
env LOGLEVEL=DEBUG ./myscript.py |& grep my_logger_name
I set the log level for just this run, then use the |& to capture both stdout and stderr, then pass that to grep.
Yesterday morning, the 7.10 version of Ubuntu was released. It’s supposed to be chock full of goodness, so my neighbor Lawyer Matt and I had an install party with Aaron and Ian.
I dug out an old IBM Thinkpad T20 laptop that had been lying around and we got to it. I’d tried various Linux installs before, including Ubuntu. It always got down to having to know far to much about the internals than I wanted to.
This was a huge difference. The basic install went very smooth. I hit one snag. This old laptop had a PCMCIA wifi card that wasn’t recognized. Aaron found the solution for my Linksys WPC54G on the Ubuntu forums. With that out of the way, it is working. I’m impressed by how simple and smooth the experience is so far. Of course, the experience so far is mainly checking gmail, playing a movie, and writing this post.