Python Logging Module and Metalog
2012-08-16 03:51:11 GMT
Hello,
Are there any known issues with the python logging module and metalog? Everytime I try to use the python SysLogHandler to log to metalog the log entries are not printed in the standard format:
Aug 15 22:48:35 [sshd] Received disconnect from 67.202.4.96: 11: Bye! [preauth]
The format of the messages I'm getting are the following:
Aug 15 22:31:31 [INFO => singularity.communicators.xencommunicator] Recieved a watch event on data/host with token, COMMAND
The python format strings I'm using that cause this output are the following:
dhl.setFormatter(logging.Formatter("{0}: %(levelname)s => %(name)s: %(pathname)s:%(lineno)d in %(funcName)s: %(message)s".format(sys.argv[0]))) # pylint: disable=C0301
nhl.setFormatter(logging.Formatter("{0}: %(levelname)s => %(name)s: %(message)s".format(sys.argv[0]))) # pylint: disable=C0301
Any guidance would be appreciated but it might be my lack of understanding of the syslog communication as well.
Thanks in advance for any assistance.
Regards,
--
Alex Brandt
Sales Engineer for Rackspace, RHCE
http://www.alunduil.com
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Metalog-users mailing list Metalog-users <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/metalog-users



RSS Feed