• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

[oik] plugins.com

WordPress plugins and themes

  • About
    • lazy shortcodes
    • smart shortcodes
    • oik base plugin
      • oik – donate
      • oik PayPal buttons
      • oik installation
      • oik Button Shortcode button
      • oik changelog
      • oik FAQ
      • oik plugins on SVN
      • oik plugins on GitHub
  • Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins
    • Bespoke oik plugins
  • Shortcodes
    • Shortcode examples
  • Blocks
    • Block examples
  • APIs
    • ALL action and filter hooks
  • Blog

bw_trace() – Log a simple trace record to the trace log file if tracing is active

Description

Log a simple trace record to the trace log file if tracing is active

Use 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

void

Source

File name: oik/libs/bwtrace.php
Lines:
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
    • bw_lazy_trace() – Implement bw_trace() to write a record to the trace log file
    • bw_trace() – Log a simple trace record to the trace log file if tracing is active

    Call hooks

    Function name: bw_trace
    Plugin ref: oik – oik information kit
    Version: 4.16.0-RC1
    Sourcefile: libs/bwtrace.php
    File ref: libs/bwtrace.php
    Deprecated?: No
    API Letters: B,T

    Published: February 2, 2018 | Last updated: February 2, 2018

    Primary Sidebar

    Information

    Function name: bw_trace
    Plugin ref: oik – oik information kit
    Version: 4.16.0-RC1
    Sourcefile: libs/bwtrace.php
    File ref: libs/bwtrace.php
    Deprecated?: No
    API Letters: B,T

    Recent plugin updates

    oik-fields v1.55.0
    oik-fields v1.55.0 Upgrade to oik-fields v1.55.0 for accessibility improvements to the featured image virtual field. ...
    oik-css v2.4.0
    oik-css v2.4.0 Upgrade to oik-css v2.4.0 for accessibility improvements for Low Color Contrast errors. ...
    oik-unloader v0.4.0
    oik-unloader v0.4.0 Update to oik-unloader v0.4.0 for improved accessibility of the active-plugins shortcode. Tested with WordPress 6.9 and PHP 8.4 ...
    oik-nivo-slider v1.18.0
    oik-nivo-slider v1.18.0 Upgrade to oik-nivo-slider v1.18.0 for improved accessibility (a11y ). Tested with WordPress 6.9 and PHP 8.4 ...
    oik-privacy-policy v1.4.11
    oik-privacy-policy v1.4.11 oik-privacy-policy v1.4.11 contains another minor security fix; to sanitize the title of any new privacy policy page you generate.  ...

    Footer

    Plugins

    • All Plugins
    • oik base plugin
    • FREE oik plugins
    • WordPress plugins
    • Premium oik plugins

    Themes

    • FREE themes
    • Bespoke themes
    • Premium themes

    Blocks

    • All Blocks
    • Block examples
    • About Blocks

    Shortcodes

    • All Shortcodes
    • Shortcode examples
    • About Shortcodes

    Reference

    • About APIs
    • All APIs
    • All Classes
    • All Files
    • All Hooks

    Support

    • Contact
    • Cookies policy
    • Get API key
    • Privacy
    • Request support
    • Sitemap
    • Stay informed
    • Terms and Conditions
    oik-plugins
    Email: herb@bobbingwide.com

    Weight shipping plugins

    Find out which cart weight shipping plugin you need for your WooCommerce site.
    Which cart weight based plugin do I need?

    Site:  www.oik-plugins.com
    © Copyright oik-plugins 2011-2026. All rights reserved.


    Website designed and developed by Herb Miller of Bobbing Wide
    Proudly powered by WordPress and oik-plugins

    WordPress version: 6.9.4

    Gutenberg version: 22.7.0

    PHP version: 8.2.30