Re: Pyro logging using several log files

Irmen de Jong <[email protected]> Wed, 08 Oct 2014 18:46:43 +0200
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
On 8-10-2014 16:03, Matthijs van Eede wrote:
> Hello all,
> 
> We recently updated our software from Pyro3 to Pyro4. Previously each process that
> was running within the communication network would write its own log file using the
> python logging library. In Pyro4 the logs for all processes are by default combined
> into a single file (pyro.log). Is there a way to configure Pyro4 objects such that
> each process writes its own log file?

Pyro4 uses Python's standard logging library so it boils down to configuring that. Just
make sure you define a unique log file name for each process in PYRO_LOGFILE or use the
logging module's regular configuration mechanism to do that.

A few examples for configuring Pyro's logs are given here:
http://pythonhosted.org/Pyro4/tipstricks.html#logging


Irmen

------------------------------------------------------------------------------
Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer
Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports
Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper
Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer
http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk