From: Nagarajan M <nag...@ya...> - 2005-11-11 01:45:47
|
Hi, I need log my messages to STDOUT, file and to a socket simultaneously. I have my code like this Log::Log4perl->easy_init( #{ level => $self->{DEBUG}, file => ">>D:/SoapSta.log", layout => '%d %p %C:%L> %m%n'}, { level => $self->{DEBUG}, file => "STDOUT", layout => '%d %p %C:%L> %m%n'} ); is there a way I can add Socket appender too in this constructor like, Log::Log4perl->easy_init( { level => $self->{DEBUG}, file => ">>D:/SoapSta.log", layout => '%d %p %C:%L> %m%n' }, { level => $self->{DEBUG}, file => "STDOUT", layout => '%d %p %C:%L> %m%n' } { level => $self->{DEBUG}, file => "Socket", peerAddr => 'localhost', peerPort => 1234, layout => '%d %p %C:%L> %m%n' } ); or is there any other way I can achieve this. Thanks, Nagarajan --------------------------------- Enjoy this Diwali with Y! India Click here |