Starts the bootstrap process. @return the return code of the program
()
| 66 | * @return the return code of the program |
| 67 | */ |
| 68 | public int start() { |
| 69 | try { |
| 70 | Constant.createInstance(controlOverrides); |
| 71 | } catch (final Throwable e) { |
| 72 | System.err.println(e.getMessage()); |
| 73 | return 1; |
| 74 | } |
| 75 | |
| 76 | Constant.setLowMemoryOption(getArgs().isLowMem()); |
| 77 | |
| 78 | if (getArgs().isNoStdOutLog()) { |
| 79 | disableStdOutLog(); |
| 80 | } |
| 81 | |
| 82 | setLogLevel(getArgs().getLogLevel()); |
| 83 | |
| 84 | return 0; |
| 85 | } |
| 86 | |
| 87 | protected static void disableStdOutLog() { |
| 88 | LoggerContext.getContext().getConfiguration().getRootLogger().removeAppender("stdout"); |
no test coverage detected