1. Disable debug.log in release build
2. Raise an error in OutputHelper when "api" is not a table