@Test public void testLogLevel() throws Exception { logManager.setStrict(false); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "info", "test-string"}); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "debug", "test-string"}); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "warn", "test-string"}); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "error", "test-string"}); logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "trace", "test-string"}); boolean success = false; try { logCommand.execute(DefaultSoarCommandContext.empty(), new String[]{"log", "test-logger", "unknown", "test-string"}); } catch (SoarException e) { success = true; } finally { assertTrue(success); } }
@Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args); }
LogCommand extends PicocliSoarCommand { @Override public String execute(SoarCommandContext context, String[] args) throws SoarException { final Log log = ((Log)this.picocliCommand); log.context = context; return super.execute(context, args); } LogCommand(Agent agent, SoarCommandInterpreter interpreter); @Override String execute(SoarCommandContext context, String[] args);  }