Log predicates
leocavalcante opened this issue · 0 comments
leocavalcante commented
Create a way to hook predicates to log functions internally, to avoid:
if (debug) {
debug('message');
}
By a single to call, for example:
debug_if(env_bool('APP_DEBUG'))
On the index.php
Then we can freely make calls to debug()
without wrapping in if
statements every time.