Re: Pyro logging using several log files

Matthijs van Eede <[email protected]> Wed, 8 Oct 2014 14:03:44 -0400 (EDT)
Newsgroups gmane.comp.python.pyro
Message-ID <[email protected]>
Thank you Irmen!

I misread the documentation the first time around. Setting up the logging module prior to importing Pyro4 works like a charm.

Cheers,
Matthijs

----- Original Message -----
From: "Irmen de Jong" <[email protected]>
To: [email protected]
Sent: Wednesday, October 8, 2014 12:46:43 PM
Subject: Re: [Pyro] Pyro logging using several log files

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
_______________________________________________
Pyro-core mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyro-core

------------------------------------------------------------------------------
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