Logging documentation updates.

This commit is contained in:
Vinay Sajip 2010-12-22 15:04:15 +00:00
parent 5e9b14c39e
commit 689b68ad2d
3 changed files with 48 additions and 47 deletions

View file

@ -8,8 +8,6 @@ Logging Cookbook
This page contains a number of recipes related to logging, which have been found useful in the past.
.. Contents::
.. currentmodule:: logging
Using logging in multiple modules
@ -249,7 +247,8 @@ configuration::
#!/usr/bin/env python
import socket, sys, struct
data_to_send = open(sys.argv[1], 'r').read()
with open(sys.argv[1], 'rb') as f:
data_to_send = f.read()
HOST = 'localhost'
PORT = 9999