[issue21807] SysLogHandler closes TCP connection after first message

2014-06-23 Thread Vinay Sajip
Vinay Sajip added the comment: The default for syslog-ng's so_keepalive() option is No (don't keep the socket open). Since you haven't responded with more information, I'll assume that you're using this default setting, and that syslog-ng is terminating the connection. Reopen if you have infor

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread Vinay Sajip
Vinay Sajip added the comment: Some information appears to be missing from your snippet: the default logger level is WARNING, so no INFO messages would be expected. Have you set logging.raiseExceptions to a False value? Are you sure that no network error is occurring? How can you be sure the o

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread R. David Murray
Changes by R. David Murray : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue21807] SysLogHandler closes TCP connection after first message

2014-06-19 Thread Omer Katz
New submission from Omer Katz: import logging import logging.handlers import socket logger = logging.getLogger('mylogger') handler = logging.handlers.SysLogHandler(('', logging.handlers.SYSLOG_TCP_PORT), socktype=socket.SOCK_STREAM) formatter = logging.Formatter('%(name)s: [%(levelname)s] %