logging to two files

Tor Erik Sønvisen tores at stud.cs.uit.no
Wed Apr 20 11:20:26 EDT 2005


Hi

Have the following code:
import logging

        logging.basicConfig(level = logging.DEBUG,
                            format = '[%(levelname)-8s %(asctime)s] 
%(message)s',
                            filename = 'rfs.log',
                            filemode = 'w')

When using logging.(debug, info etc) stuff is logged to rfs.log.
How may I specify another log with different charateristics, such as a 
different file

regards 





More information about the Python-list mailing list