[oik] plugins.com

WordPress plugins and themes

  • Home
  • 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
You are here: Home / WordPress plugins from oik-plugins / FREE oik plugins / oik-bwtrace – debug trace for WordPress / Trace output file

Trace output file

The output from the oik-bwtrace plugin is written to output files on your WordPress server. The files are written to the Trace files directory.

The general structure of a trace log record is a series of fields separated by spaces. These two trace records have been split over 3 lines.

C:\apache\htdocs\wordpress\wp-content\plugins\bobbing\bobbing.php(50:0)
bobbing_init(1) 15 0 2019-12-05T09:22:37+00:00 2.292976 0.000403
cf=init,oik_loaded 4088 14 0 29360128/29360128 256M F=548 1 
C:\apache\htdocs\wordpress\wp-content\plugins\bobbing\bobbing.php(51:16)
bobbing_init(2) 16 0 2019-12-05T09:22:37+00:00 2.293172 0.000196
cf=init,oik_loaded 4088 14 0 29360128/29360128 256M F=548 the ultimate answer 42

Here’s the second record split over multiple lines.

C:\apache\htdocs\wordpress\wp-content\plugins\bobbing\bobbing.php(51:16)
bobbing_init(2) 
16 
0
2019-12-05T09:22:37+00:00 
2.293172 
0.000196
cf=init,oik_loaded 
4088 
14 
0 
29360128/29360128 
256M 
F=548 
the ultimate answer 
42

The fields are:

Field Comment
sourcefile(lineno:level) the sourcefile may be fully qualified with ABSPATH
function(invocation count) number of calls to trace from this function
trace record count
trace error count
timestamp
elapsed since transaction started
interval since previous trace record
context including current filter shows filter tree
number of queries
post ID
memory/peak usage in bytes
memory limit in Megabytes
files loaded
output buffer handlers if more than one
field label
field value
bwecho’d content when applicable

Some of the fields are optional. The contents of each trace record can be selected using Settings > oik trace options.

Field value format

The field value is printed using the PHP print_r() function or an equivalent function ( bw_trace_obsafe_print_r() ) when there is more than one output buffer handler active.
It will print all the values of an array or object.
For large arrays or objects this may produce a lot of output. It can slow the site down considerably.

When the bw_trace2() API is called without any parameters then it will trace the current values of the parameters that were passed to the function.

Notes on trace file names

This documentation assumes the file name is bwtrace.loh.

Since nine times out of ten you will want to view trace logs in one window and the web page in another, and since some browsers will attempt to download a .log file, rather than display it within the browser, I use the .loh extension.

Note: Remember that the trace output files may be publicly accessible. If you do enable tracing on a live site then you should remember to disable it when you have finished and ensure the files are deleted.

Published: December 19, 2012 | Last updated: December 5, 2019

Information

Component:
  • oik-bwtrace – debug trace for WordPress
Letters: T

Recent plugin updates

oik-themes v1.4.0 

Update to oik-themes v1.4.0 to support Full Site Editing (FSE) themes. FSE themes, which are currently experimental, deliver block based templates and template parts.

 ...
oik-clone v2.0.1 oik-clone v2.0.1 contains a fix for a 500 internal server error being produced when cloning content with certain taxonomy terms. ...
SB Chart block v0.1.1 

Update to SB Chart block v0.1.1 for improved enqueing of the chart.js Javascript and better colours in the Gutenberg palette.

 ...
Slog v1.3.1 

Update to Slog v1.3.1 for a new Driver tab and improved display of charts grouping Elapsed times.

 ...
SB-Chart-Block v0.0.8 SB-Chart-Block v0.0.8, a WordPress single block plugin, supports 4 different chart types; Line, Bar, Horizontal bar and Pie. ...

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: [email protected]

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-2021. All rights reserved.


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