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/oikscloa2AuSc8 – 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=__FUNCTION__, $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
Called by
1 to 15 of 15
- bw_artisteer_version() – Detect Artisteer version, if applicable
- bw_block_() – Syntax [bw_block class="classes" title="title text" framed="y/n,t/f,1/0"] Future use parameters are prefix="art-" level="h3" – heading level for the block title
- bw_block_25() – Syntax [bw_block class="classes" title="title text" framed="y/n,t/f,1/0"] Future use parameters are prefix="art-" level="h3" – heading level for the block title
- bw_block_30() – Syntax [bw_block class="classes" title="title text" framed="y/n,t/f,1/0"] Future use parameters are prefix="art-" level="h3" – heading level for the block title
- bw_block_31() – Syntax [bw_block class="classes" title="title text" framed="y/n,t/f,1/0"] Future use parameters are prefix="art-" level="h3" – heading level for the block title
- bw_contact_button() – Create a Contact me button
- bw_default_empty_arr() – Set a default value for an empty array[ index]
- bw_format_post() – Format the "post" – basic first version
- bw_format_thumb() – Format the "thumb"
- bw_gallery() – Gallery logic
- bw_get_posts() – Wrapper to get_posts()
- bw_gp_slideshow() – Safely invoke SlideShow Gallery Pro
- bw_lazy_trace_action_immediate() – Trace the fact that an action has been invoked without our prior knowledge of the possibility
- bw_pages() – Implement [bw_pages] shortcode
- bw_trace_action_end() – Trace the fact that an action has completed Notes: – We assume that priority of 1000 is the highest anyone will set – When the action is shutdown we call bw_trace_report_actions() – this could just as easily have been added using add_action( "shutdown", "bw_trace_report_actions" ) **?**
Invoked by
Calls
1 to 2 of 2
