<div>Hi </div>
<div> </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> </div>
<div>This is being done on a Linux machine.</div>
<div> </div>
<div>Thanks for the help</div>
<div>Kieran</div>
<div> </div>
<div><br><br> </div>
<div><span class="gmail_quote">On 6/16/06, <b class="gmail_sendername">Lloyd Kvam</b> <<a href="mailto:lkvam@venix.com">lkvam@venix.com</a>> 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>> Hi<br>><br>> I want to run a script on one machine and log output messages to a
<br>> remote file located on another machine. Is there any easy method of<br>> 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 "normal" log file managed by a syslog process
<br>then you should find the python part pretty easy. 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 "logging<br>messages". Then use the logging module on the local machine to send<br>"logging messages" to the remote machine.<br><br><br>> Thanks
<br>> Kieran<br>><br>> --<br>> "Behind every great man, there is a great woman. Behind that woman is<br>> Mr.T."<br>> _______________________________________________<br>> Tutor maillist -
<a href="mailto:Tutor@python.org">Tutor@python.org</a><br>> <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: 603-653-8139<br>fax: 320-210-3409<br><br></blockquote></div><br><br clear="all"><br>-- <br>"Behind every great man, there is a great woman. Behind that woman is Mr.T."