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?
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/python_inside_maya
-~----------~----~----~----~------~----~------~--~---