Finally I am not too sure how this works... I can get the debug message to log sometimes... not too sure why yet. There is something in the logging concept that I am not getting.
On Fri, Oct 9, 2009 at 10:18 AM, sberger <[email protected]> wrote: > > Hi, I have been experimenting with the python logging module... for > some reason the debug and info level of the logging are not printed in > Maya.. > > Here is a simple example: > import logging > def go(): > logging.basicConfig(level=logging.DEBUG) > > logger1 = logging.getLogger('package1.module1') > > logger1.debug('This is a debug message') > logger1.info('This is an info message') > logger1.warning('This is a warning message') > logger1.error('This is an error message') > logger1.critical('This is a critical error message') > > go() > > When executed in Maya I get this result: > # WARNING:package1.module1:This is a warning message > # ERROR:package1.module1:This is an error message > # CRITICAL:package1.module1:This is a critical error message > > Where it should be: > DEBUG:package1.module1:This is a debug message > INFO:package1.module1:This is an info message > WARNING:package1.module1:This is a warning message > ERROR:package1.module1:This is an error message > CRITICAL:package1.module1:This is a critical error message > > > Anyone have any idea why that is? > > > > -- "A pit would not be complete without a Freeman coming out of it." The Vortigaunt --~--~---------~--~----~------------~-------~--~----~ http://groups.google.com/group/python_inside_maya -~----------~----~----~----~------~----~------~--~---
