PHP Classes

File: TraceFile.xbt

Recommend this page to a friend!
  Classes of Bob Wedwick  >  PHP Expert System Engine  >  TraceFile.xbt  >  Download  
File: TraceFile.xbt
Role: Auxiliary data
Content type: text/plain
Description: Xbert rule set
Class: PHP Expert System Engine
Ask questions and make decisions based on answers
Author: By
Last change:
Date: 4 years ago
Size: 1,244 bytes
 

Contents

Class file image Download
/*,, TraceFile.xbt - Trace example used with XbertClass.php.
The trace file is opened, some user interaction is stored, tracing is turned off,
then reactivated for more user interaction, and one line is sent without user interaction.
The trace file is closed when the rule set ends.
*/,,
3	,,This line is not traced.
	,,The default name has the name "Trace" with a date
	,,	and time and ending with ".trace".
	,,Tracing begins after the next line using a text file
	,pau,	with the default name.
	,TRFile,
	,,The trace file should now be open and locked.
	,pau,These lines should be seen in the trace file.
#	,,Comment lines are not sent to the trace file.
#	,,Next we turn tracing off.
	,Troff,
	,,- - - - - This does not go to the trace file.
	,, ^^^ Tracing is set off but the trace file remains open.
	,pau,-- So lines with  ^^^ should not be in the trace file.
#	,,Next we turn tracing back on using the trace file that is still open. The new name is ignored.
	,TRF,TraIgnored.abc
#	,,The next line is sent to the trace file without user involvement.
	,put,_ _ _ This message goes directly to the trace file _ _ _
	,,- - - - -
	,,Tracing resumes with this line.
	,pau,You should find the trace file with the default name.
	,end of rule set,
For more information send a message to info at phpclasses dot org.