logging module: problem with custom handlers

wolf castor at snafu.de
Mon Oct 27 11:54:44 EST 2003


Andreas Jung <lists at andreas-jung.com> wrote in message news:<mailman.130.1067255458.702.python-list at python.org>...
> I am trying to write a custom logger with a custom handler:

you will have to be a tad more specific, i´m afraid. what does your
file layout look like? assuming that you have ::

    fx.py
        class X:
            ...

    fy.py
        class Y:
	        ...
		y = Y()

then, in order to refer to X, Y, or y from a third file, you can do 
something like ::

    from fx import X
    from fy import Y
    from fy import y

or ::

	import fx.X

or ::

	import fx.X as foo

there. does that help?

_wolf




More information about the Python-list mailing list