auto-generate console methods
use ternary