in reply to Log Files

It sounds like
foo >foo.out 2>foo.err
is working fine for you, but for some reason you want to use something else. Is main::logfile a solution in search of a problem?

What problem are you trying to solve?

--t. alex

"Excellent. Release the hounds." -- Monty Burns.