Re: improvements sought re. logging across modules

2013-04-24 Thread Dave Angel
On 04/24/2013 12:54 PM, The Night Tripper wrote: Hi all I have a small suite of python modules, say A.py B.py C.py which can be invoked in a variety of ways. eg. 1) A.py is invoked directly; this imports and uses B.py and C.py 2) B.py is invoked; this imports a

Re: improvements sought re. logging across modules

2013-04-24 Thread Chris “Kwpolska” Warrick
On Wed, Apr 24, 2013 at 6:54 PM, The Night Tripper wrote: > Hi all > I have a small suite of python modules, say > > A.py > B.py > C.py > > which can be invoked in a variety of ways. eg. > > 1) A.py is invoked directly; this imports and uses B.py and C.py > > 2) B.p

Re: improvements sought re. logging across modules

2013-04-24 Thread Fábio Santos
Maybe import mylogger.mylogger as gLog? I don't know what you mean by "missing a trick". Your example seems pretty pythonic to me, except for the fact that you use a singleton where you could have a couple of functions and use the module as the namespace. On 24 Apr 2013 17:58, "The Night Tripper"

improvements sought re. logging across modules

2013-04-24 Thread The Night Tripper
Hi all I have a small suite of python modules, say A.py B.py C.py which can be invoked in a variety of ways. eg. 1) A.py is invoked directly; this imports and uses B.py and C.py 2) B.py is invoked; this imports and uses A.py and C.py I use the logging module in