Jeffery Martin via RT wrote:
Show quoted text> It would be nice if I could specify STDOUT as the output file. Like this:
>
> use Log::StdLog { level => 'warn', file => "STDOUT" };
>
> or
>
> use Log::StdLog { level => 'warn', file => STDOUT };
>
> I don't really care how I am forced to specify it, as long as I could.
> I've tried both ways without success.
The module can be loaded so that it writes to a specific filehandle
rather than to a named file. You need to use the (undocumented) 'handle'
option rather than 'file':
use Log::StdLog { level => 'warn', handle => \*STDOUT };
(Yes, I'll fix the lack of documentation for the next release ;-)
Thanks, Jeffery.
Damian