You appear to be a bot. Output may be restricted
Description
Log a simple trace record to the trace log file if tracing is activeUse bw_trace2() in preference to bw_trace() except in special circumstances which prevent bw_trace2() from being invoked.
Usage
bw_trace( $text, $function, $lineno, $file, $text_label, $level );
Parameters
- $text
- ( mixed ) required – value to be traced
- $function
- ( string ) optional default: oiksc_dummy_function_0 – name of function to log in the trace file. In OO code use METHOD
- $lineno
- ( integer ) optional default: 2 – line number of source file to log
- $file
- ( string ) optional default: /tmp/oikscloaz1lEni – source file name
- $text_label
- ( string ) optional – a label to help you locate the trace record
- $level
- ( integer ) optional default: BW_TRACE_ALWAYS – required level of tracing
Returns
voidSource
File name: oik/libs/bwtrace.phpLines:
1 to 6 of 6
function bw_trace( $text, $function=bw_trace, $lineno=__LINE__, $file=__FILE__, $text_label=null, $level=BW_TRACE_ALWAYS ) { global $bw_trace_on, $bw_trace_level; if ( $bw_trace_on && ( $level <= $bw_trace_level ) ) { bw_lazy_trace( $text, $function, $lineno, $file, $text_label, $level ); } }View on GitHub View on Trac