function coder_upgrade_log_print in Coder 7.2
Same name and namespace in other branches
- 7 coder_upgrade/includes/main.inc \coder_upgrade_log_print()
Prints log information if log flag is on.
Parameters
mixed $text: A string, array, or object to print.
9 calls to coder_upgrade_log_print()
- clp in coder_upgrade/
includes/ main.inc - coder_upgrade_apply_parser in coder_upgrade/
includes/ main.inc - Applies grammar parser conversion routines to a file.
- coder_upgrade_apply_regex in coder_upgrade/
includes/ main.inc - Applies regular expression conversion routines to a file.
- coder_upgrade_convert_begin in coder_upgrade/
includes/ main.inc - Processes the directory before conversion routines are applied.
- coder_upgrade_convert_dir in coder_upgrade/
includes/ main.inc - Converts files in a directory.
File
- coder_upgrade/
includes/ main.inc, line 709 - Manages application of conversion routines, logging, and patch file creation.
Code
function coder_upgrade_log_print($text) {
global $_coder_upgrade_log;
static $path = '';
if (!$_coder_upgrade_log) {
return;
}
if (!$path) {
$path = coder_upgrade_path('log');
// coder_upgrade_path_clear('log');
}
coder_upgrade_path_print($path, $text);
}