You appear to be a bot. Output may be restricted
Description
Dormant logging functionSimilar to oik-bwtrace's bw_trace2() but always enabled if the bw_lazy_log() function is defined, regardless of the $level.
Usage
$mixed = bw_log( $value, $text, $show_args, $level );
Parameters
- $value
- ( mixed ) optional – the data to be logged
- $text
- ( string ) optional – label for the data to be logged
- $show_args
- ( bool ) optional default: 1 – true if the calling parameters should be logged
- $level
- ( string ) optional default: BW_TRACE_ALWAYS – either the logging level or a callable function which is passed $value
Returns
mixed $value – in case it's invoked in a filter function's returnSource
File name: oik/libs/oik_boot.phpLines:
1 to 6 of 6
function bw_log( $value=null, $text=null, $show_args=true, $level=BW_TRACE_ALWAYS ) { if ( function_exists( "bw_lazy_log" ) ) { bw_lazy_log( $value, $text, $show_args, $level ); } return( $value ); }View on GitHub View on Trac