[Zope-dev] Need help

Tres Seaver tseaver at palladion.com
Tue Dec 1 11:58:32 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Roopesh P Raj wrote:
> I have to use a logging framework in my zope product. The logging framework
> makes it mandatory to use the same object instance to fire various logging
> calls (like log start, log end). I want to store the object instance
> somewhere so that I can use it from any module in my zope product.

I disagree on the need to use a global:  you should just be able to call
'logging.getLogger("yourapp")' and use the instance which comes back.


Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at palladion.com
Palladion Software   "Excellence by Design"    http://palladion.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAksVSzgACgkQ+gerLs4ltQ7mJQCfT8l37V7RWX8MvmtpklHw2FrR
TkMAn3azqJsj0WxcROprl1s3FqEnn2EC
=/fpV
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list