public void start ( ) { try { final Terminal terminal = TerminalConsoleAppender . getTerminal ( ) ; if ( terminal != null ) { readCommands ( terminal ) ; } else { readCommands ( System . in ) ; } } catch ( IOException e ) { LogManager . getLogger ( "TerminalConsole" ) . error ( "Failed to read console input" , e ) ; } }
Start reading commands from the console .