Prints logs in debug mode
void logger(dynamic log) { debugPrint(Error.safeToString(log.toString())); }