On Mon 14 Jul 2008 09:25:19 AM EDT, Vinay Sajip wrote:
> Is your package a library or an application? If it's a library, you
> should avoid configuring logging using a config file - this is because
> logging configuration is process-wide, and if multiple libraries use
> fileConfig to configure their logging, you may get unexpected results.

I thought that the point of using logging.getLogger('foo.bar.baz') was
to allow each module/class/function to choose from the available
configurations.

So, I can define a really weird logger and still be a good citizen.

As long as I don't tweak the root logger, is it safe to use a config
file?

Matt

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to