Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Changes between Version 8 and Version 9 of logging


Ignore:
Timestamp:
07/02/06 13:41:25 (11 years ago)
Author:
anonymous
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • logging

    v8 v9  
    2121 
    2222That is the preferred way to create a logger. The param string is the name of your new logger. Although this could be anything you want, it's good practice to follow a convention and keep your logs organized from the get go. Here we name the logger after the package/module since this is a unique name. 
     23 
     24One way to easily set up logger names by package is 
     25{{{ 
     26log = logging.getLogger(__name__) 
     27}}} 
    2328 
    2429Next, send some info to our new logger object: