Tie::Log::Handler - Tie a filehandle to Log::Handler
use Tie::LogHandler;
tie *STDOUT, 'Tie::LogHandler', $log, $level;
# this will be logged to the $log object passed at $level warn "Darn, an error!";
The following arguments are to be passed after the class name: a Log::Handler object created with Log::Handler->new() and containing at least a log target; the loglevel to record messages at.
This module does not safeguard against tying the same file handle that one logs to. You should be careful and avoid this.