|
From: Robert L. <rla...@ao...> - 2008-02-28 15:25:17
|
I recently had the need to log SOAP method calls to a log file. With
several hundred existing methods, changing each wasn't really an option.
I hacked the SOAP/Lite.pm handle method so it would log the incoming
method name and parameters. It does this if running in the MOD_PERL
environment, and if a dir_config is set.
It's not fancy. But it logs in the following format:
[Wed Feb 6 16:00:01 2008] 1.2.3.4 soap_call_method_name ("key1",
"value1",...)
I've attached diff -u output.
In a perfect world, the code would lock the logfile, or at least check
to see if it could be opened... As I said... it was just hacked in.
And so far, has been incredibly useful, at least to me.
If this looks like a useful feature to others, I can clean it up a bit
for the 0.70 release.
Rob
|