[Xml-compile] Logging from callback

Robin V. robinsp at gmail.com
Wed Apr 21 22:40:10 GMT 2010


Hi,

I'm fighting (again) with logging framework of xml::compile. The
complexity of the Log::Report taking over other logging mechanisms is
driving me crazy and after an hour of tries I think I need somebody
help.

The server is a moose object, and the callback are registered after
wsdl compilation, the request is received and the expected (fake)
reply is sent, but when I try to print or write log from the callback,
I can't see anything.

Moose classes rely on log4perl in simple mode (
Log::Log4perl->easy_init( $DEBUG ); ) and everything is fine (I can
log from my object constructor). But if I try to log using
ERROR("XXX") or DEBUG("XXX") from the callback, I can see nothing. I
also tried simple print without any more results. I tried different
things like, dispatcher PERL => 'usual',  mode => 'DEBUG'; without
success.


I tried adding and moving around "use Log::Report", before or after
log4perl, but the result is always the same: no output from the
callback. I also tried to pass parameter to net::server object
creation like "log_file",but without anymore results.

Does somebody have any idea?

Thanks,
Robin



More information about the Xml-compile mailing list