<div>Hi </div>
<div>&nbsp;</div>
<div>Thanks for the help. I took a quick scan through the logging module and I can't see any mention of writing to a remote file ? Could you please direct me to the part you mentioned ?. I went through some of the examples and the one related to remote logging is via the console (tcp port). I cannot see any information given regarding remote logging.
</div>
<div>Just to give some more info on what I am doing. I have a large script that is running and outputting messages to a logfile I am storing. I want these messages to be output to a remote file instead which can be viewed on a browser to provide realtime data as the script processes.
</div>
<div>So this logfile is not handled by syslog.</div>
<div>&nbsp;</div>
<div>This is being done on a Linux machine.</div>
<div>&nbsp;</div>
<div>Thanks for the help</div>
<div>Kieran</div>
<div>&nbsp;</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 6/16/06, <b class="gmail_sendername">Lloyd Kvam</b> &lt;<a href="mailto:lkvam@venix.com">lkvam@venix.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Fri, 2006-06-16 at 14:47 +0100, kieran flanagan wrote:<br>&gt; Hi<br>&gt;<br>&gt; I want to run a script on one machine and log output messages to a
<br>&gt; remote file located on another machine. Is there any easy method of<br>&gt; doing this ?.<br><br><a href="http://docs.python.org/lib/module-logging.html">http://docs.python.org/lib/module-logging.html</a><br><br>
If the remote machine is a file server, you can use the logging module<br>to write to a file on the remote machine<br><br>Also the logging module can be used to easily log to a syslog handler.<br>If this remote file is a &quot;normal&quot; log file managed by a syslog process
<br>then you should find the python part pretty easy.&nbsp;&nbsp;The syslog process<br>still needs to be configured to accept your logging messages, but that<br>should not be too difficult.<br><br>Scanning the logging module docs, it looks like you can use it to write
<br>your own process to run on the remote machine to handle &quot;logging<br>messages&quot;.&nbsp;&nbsp;Then use the logging module on the local machine to send<br>&quot;logging messages&quot; to the remote machine.<br><br><br>&gt; Thanks
<br>&gt; Kieran<br>&gt;<br>&gt; --<br>&gt; &quot;Behind every great man, there is a great woman. Behind that woman is<br>&gt; Mr.T.&quot;<br>&gt; _______________________________________________<br>&gt; Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;
<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/tutor">http://mail.python.org/mailman/listinfo/tutor</a><br>--<br>Lloyd Kvam<br>Venix Corp.<br>1 Court Street, Suite 378
<br>Lebanon, NH 03766-1358<br><br>voice:&nbsp;&nbsp;603-653-8139<br>fax:&nbsp;&nbsp;&nbsp;&nbsp;320-210-3409<br><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Behind every great man, there is a great woman. Behind that woman is Mr.T.&quot;