This is not a bug in python2.4, it's a bug in the code you have
provided. I will reject the bug. You may open it again, if you feel that
you aren't done with it.


import logging, logging.handlers

logger = logging.getLogger('')
logger.setLevel(logging.DEBUG)
handler = logging.handlers.SysLogHandler('/dev/log') # NOTE THIS!
logger.addHandler(handler)

logger.info('Jackdaws love my big sphinx of quartz.')


SysLogHandler() will send the logging to a unixsocket. It isn't intended to 
output text on the console. 
If you pass "/dev/log" as the object's argument, it will append it to 
/var/log/messages.
SysLogHandler() without any argument will make it try to open localhost on udp.

** Changed in: python2.4 (Ubuntu)
       Status: New => Invalid

-- 
Python logging module doesn't work
https://bugs.launchpad.net/bugs/122986
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to