Share » Forums » Developer » NuSoap-debugging?

NuSoap-debugging?

NuSoap-debugging?

Tuesday 20 February 2007 1:31:06 pm - 3 replies

Author Message

kracker (the)

The Doctor

Tuesday 20 February 2007 2:29:01 pm

You could use eZ publish's logging functionality! Here is a snippet to get you started

include_once('lib/ezfile/classes/ezlog.php');
 /*!
     \public
     Writes a message $message to a given file name $name and directory $dir for logging
    */
    $l = new eZLog();
$message='test';
   $I->write( $message, $logName = 'common.log', $dir = 'var/log' );

//kracker

<i>KMK - Neva Stop...</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Bruce Morrison

Tuesday 20 February 2007 3:48:43 pm

Hi Nicklas

krackers messages shows how you can write to your oen log file.

Howevere if you want to create eZ debug messages you should use the eZDebug class:
http://pubsvn.ez.no/doxygen/classeZDebug.html

The simplest way to use it is

eZDebug::writeDebug( "This should never happen" );

No need to include lib/ezutils/classes/ezdebug.php as it's included for all requests in index.php

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Nicklas Lundgren

Wednesday 21 February 2007 12:43:49 am

Hi Kracker and Bruce.

Thanks to you both for your suggestions.
I think I will use both of them in this case.

Also, I have now created a script to run the soap-functions locally as the main problem with calling nusoap-methods is that on the client-side of things, there is only a reply, or maybee a soap fault code. No way to examine debug messages or logs from php there.

Now things are working fine so, again, thanks for your help!

Best regards,
/Nicklas

Nicklas Lundgren, Managing Director
Novitell AB, Sweden

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu