Skip to content

Commit

Permalink
Suggest ‘logging.Handler.stream’ attribute for output stream.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Finney committed Sep 28, 2009
1 parent b287dec commit 990acc0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions doc/FAQ
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ known to be safe once detached (to ansure any files that continue to
be used are under the control of the daemon process).

If you want the process to generate output via the system streams
‘sys.stdout’ and ‘sys.stderr’, set the ‘stdout’ and/or ‘stderr’
options to a file-like object that does not buffer writes
(remembering, again, that there is no controlling terminal). If these
objects have file descriptors, they will be preserved when the daemon
context opens.
‘sys.stdout’ and ‘sys.stderr’, set the ‘DaemonContext’'s ‘stdout’
and/or ‘stderr’ options to a file-like object (e.g. the ‘stream’
attribute of a ‘logging.Handler’ instance). If these objects have file
descriptors, they will be preserved when the daemon context opens.

How can I run a service communicating with a separate daemon process?
---------------------------------------------------------------------
Expand Down

0 comments on commit 990acc0

Please sign in to comment.