in reply to Passing the logger's object

Here's a script which covers everything I've commented about on this thread in the first 31 lines.

I use class methods at the beginning so that I don't go through the expense of creating an object (which is a bit intensive) until I know that the script will execute past the part that I absolutely need it.

Lines 29-31 is where I instantiate the object, get a log object from it, then localize it.

I love it when I reference my own code. I read it thoroughly, and then spot bugs I didn't know existed. This is one of them cases, and surprisingly, I'm kind of weirded out that things work anyways ;)