$show_error=true;
$strong = false;
if($show_error) {
if($strong) {
define('SHOP_LOG_LEVEL', E_ALL);
define('SYNC_LOG_LEVEL', E_ALL);
define('ADMIN_LOG_LEVEL', E_ALL);
define('SMARTY_LOG_LEVEL', E_ALL);
define('SMARTY_LOG_LEVEL', E_ALL);
ini_set('display_errors', 1);
} else {
define('SHOP_LOG_LEVEL', E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_USER_DEPRECATED);
define('SYNC_LOG_LEVEL', E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_USER_DEPRECATED);
define('ADMIN_LOG_LEVEL', E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_USER_DEPRECATED);
define('SMARTY_LOG_LEVEL', E_ALL & ~E_WARNING & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED & ~E_USER_DEPRECATED);
ini_set('display_errors', 1);
}
ini_set('error_log',PFAD_ROOT. 'jtllogs/phperror_'.date("d-m-Y").'.log');
} else {
//enables printing of warnings/infos/errors for the shop frontend
define('SHOP_LOG_LEVEL', 0);
//enables printing of warnings/infos/errors for the dbeS sync
define('SYNC_LOG_LEVEL', 0);
//enables printing of warnings/infos/errors for the admin backend
define('ADMIN_LOG_LEVEL', 0);
//enables printing of warnings/infos/errors for the smarty templates
define('SMARTY_LOG_LEVEL', 0);
//excplicitly show/hide errors
ini_set('display_errors', 0);
}