Hi

I am using Logging module in my turbogears project. The log that is
generated has entries other than the one that I have logged through my
code. Few of those unwanted entries are given below :

Fri, 29 Dec 2006 12:50:27 INFO     HTTP: Serving HTTP on
http://localhost:8080/
Fri, 29 Dec 2006 12:50:48 DEBUG    Compiling template for
turbogears.view.templates.sitetemplate

The code I have written is :
file_handler =
logging.handlers.RotatingFileHandler(self.logobj_path.name,"a",1000,10)
formatter = logging.Formatter('%(name)-12s: %(levelname)-8s
%(message)s')
file_handler.setFormatter(formatter)
logging.getLogger('').addHandler(file_handler)
logging.info('Jackdaws love my big sphinx of quartz.')
self.logger = logging.getLogger('myapp')
self.logger.setLevel(logging.INFO)

What should I do to avoid the entries that are generated by turbogears.
Can anyone tell me.
Regards
Roopesh


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to