Fancy log output module can send lines to stdout/err or files.  Easy to redirect, filter, control and configure.
Much better with this here