The documentation for
SOAP::Trace appears to be buried deep in the same page as
SOAP::Lite, otherwise this seems to provide the messaging access you need although there is nothing specific to maintain the actual logfile i/o. On the other hand, the part that just writes anything passed to a logfile should just be a few lines more to write.