Hi there,
I'm looking for a clean and easy way to enable and disable a debug mode for MODx globally because I don't want to do set it directly in a snippet. Initially i wanted to set this in config.inc.php.
$modx->setDebug(E_ALL & ~E_NOTICE);
$modx->setLogLevel(modX::LOG_LEVEL_DEBUG);
But obvisously the $modx object is not available yet. So I'm asking myself what would be the best way to take care of the debugging option in a single place.