logo-radria.gif
   
Blog Download Documentation Forum Tasks Home
Blog Download Documentation Forum Tasks Home
barside-right.gif
barside-left.gif
logo-sql.gif





Logs and Errors

This is where the error and run logs are managed.

You can turn on error and run time logging for any object using : $objectname→setLogErrors(true);

To turn on error logging: $objectname→setLogRun(true);

To turn on run time logging, usually for debugging purposes.

To send an error to the error log use the following syntax: $objectname→setError(“Error message”);

The error message will be formatted with time stamp and referrer of the script that generated the error.

To send a message to the run time log : $objectname→setLog(“\n – message for the Radria run log”);

The run time log is written directly without any formatting. So you need to add line breaks and time stamps yourself. The setLog method accepts a second parameter, a boolean to enable/disable log writing.

As all objects extend BaseObject most of the time $objectname is the $this keyword. The error logs and run time logs are respectively stored in radria_error.log and radria_run.log

 
core/baseobject/logs_and_errors.txt · Last modified: 2007/10/25 17:32 by 76.169.240.49
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki