|
ZenCart_Documentation
1.5.0
http://www.collinsharper.com
|
00001 <?php 00018 $pages_to_debug[] = '*'; 00019 $pages_to_debug[] = ''; 00020 $pages_to_debug[] = ''; 00021 $pages_to_debug[] = ''; 00022 00028 $debug_logfile_path = DIR_FS_SQL_CACHE . '/myDEBUG-adm-' . time() . '-' . mt_rand(1000,999999) . '.log'; 00029 00034 $errors_to_log = (version_compare(PHP_VERSION, 5.3, '>=') ? E_ALL & ~E_DEPRECATED & ~E_NOTICE : version_compare(PHP_VERSION, 5.4, '>=') ? E_ALL & ~E_DEPRECATED & ~E_NOTICE & ~E_STRICT : E_ALL & ~E_NOTICE); 00035 00037 00039 if (in_array('*', $pages_to_debug) || in_array($current_page_base, $pages_to_debug)) { 00040 @ini_set('log_errors', 1); // store to file 00041 @ini_set('log_errors_max_len', 0); // unlimited length of message output 00042 @ini_set('display_errors', 0); // do not output errors to screen/browser/client 00043 @ini_set('error_log', $debug_logfile_path); // the filename to log errors into 00044 @ini_set('error_reporting', $errors_to_log ); // log only errors according to defined rules 00045 }