Changeset 1595
- Timestamp:
- 2010-07-05 12:39:18 (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/kauri-runtime-cli/src/main/java/org/kauriproject/runtime/cli/Logging.java
r548 r1595 38 38 } 39 39 } else if (consoleLoggingLevel == null) { 40 // If there 's not log configuration specified, and console loggingnot enabled,41 // then default to printing error messages to the console40 // If there is no log configuration specified, and console logging is not enabled, 41 // then default to printing warn and higher messages to the console 42 42 System.out.println("Note: it is recommended to specify a log configuration. Will print error logs to the console."); 43 43 Logger logger = Logger.getRootLogger(); 44 logger.setLevel(Level. ERROR);44 logger.setLevel(Level.WARN); 45 45 logger.addAppender(consoleAppender); 46 46 consoleAppenderAdded = true; … … 69 69 logger.setLevel(level); 70 70 71 if (consoleLogCategory != null) 72 Logger.getRootLogger().setLevel(Level.ERROR); 71 if (consoleLogCategory != null) { 72 // always log all warn-and-higher messages 73 Logger.getRootLogger().setLevel(Level.WARN); 74 } 73 75 74 76 Logger rootLogger = Logger.getRootLogger();
Note: See TracChangeset
for help on using the changeset viewer.