Linux Today: Linux News On Internet Time.
Search Linux Today
Linux News Sections:  Developer -  High Performance -  Infrastructure -  IT Management -  Security -  Storage -
Linux Today Navigation
LT Home
Contribute
Contribute
Link to Us
Linux Jobs


More on LinuxToday


Python4Kids New Tutorial: I Wanted to be a Lumberjack (logging)

Oct 23, 2012, 10:00 (0 Talkback[s])
(Other stories by Brendan Scott)

When something goes wrong with a program, it is natural to try to diagnose the problem by using the print statement to check the value of variables. As your program grows in size however, this begins to get unwieldy, if only because the output of print ends up in the console and you lose it to the autoscrolling. Python offers another way to record these messages – the logging module. In its most most basic form...

Complete Story

Related Stories: