add minimal implementation of console output
fix print_leveled in console output
test flat output for console