RE: which class it is?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry for that all my friends, I just came from a vocation during the
weekend, so I can't read your threads. Thanks for all your help.

The debug_backtrace() is powerful to debug, but when I construct my classes
with simpleTest or other opensource applications, it contains lots of info
that I don't concern on in my application. So I decide to write or find
something a little bit simpler.

I just want to trace my application with the debughelper, when I want to see
what happened in it. Then I can get sth like this:

2005-03-07 11:41:15.355297 soapclient: SOAP message length: 455 contents
2005-03-07 11:41:15.355583 soapclient: transporting via HTTP
2005-03-07 11:41:15.356393 soapclient: sending message, length: 455
2005-03-07 11:41:15.355823 soap_transport_http: scheme = http
2005-03-07 11:41:15.355961 soap_transport_http: host = 172.24.107.244
2005-03-07 11:41:15.356092 soap_transport_http: path =
/BSSRemoteWebService/CustomerService.asmx

The style is $this->getMicroTime().' '.get_class($this).": $string \n<br>";
When I inheritlize my new class from debughelper.
Well, I use php4. Sorry I forgot to declare it. If I use v5, exception is a
good choice.

Best regards,
Yang Shiqi
 
 
 
-----Original Message-----
From: Jochem Maas [mailto:jochem@xxxxxxxxxxxxx] 
Sent: Friday, March 04, 2005 11:10 PM
To: Jason Barnett
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  which class it is?

Jason Barnett wrote:
> Yangshiqi wrote:
> 
>>And I do not want all my classes to inherit the debughelper.
>>
>> 
>>Best regards,
>>Yang Shiqi
>> 
> 
> 
> Yikes!  I swear, some of these mailreader programs that people use... I
> thought this was an actual answer to someone's question... anywho...
> 
> Have you checked out debug_backtrace() and set_error_handler()
> http://php.net/manual/en/function.debug-backtrace.php
> http://php.net/manual/en/function.set-error-handler.php


I have given up on this thread - the logic is all of a sudden lost on me!
I think we gave Yang some good stuff to chew on - last I read he was going
to
dig into exceptions! :-)

hey Yang, if you get stuck with Exceptions somewhere please post to a new
thread :-)

> 
> Exceptions in PHP5
> http://php.net/exceptions
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux