Changeset 12765 in josm for trunk/src/org/openstreetmap/josm/tools/Logging.java
- Timestamp:
- 2017-09-07T00:37:06+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Logging.java
r12621 r12765 271 271 } 272 272 273 /** 274 * Logs a throwable that happened. Adds the stack trace to the log. 275 * @param level The level. 276 * @param t The throwable that should be logged. 277 * @param pattern The formatted message to print. 278 * @param args The objects to insert into format string 279 * @see #logWithStackTrace(Level, Throwable) 280 */ 281 public static void logWithStackTrace(Level level, Throwable t, String pattern, Object... args) { 282 logPrivate(level, () -> getErrorLogWithStack(MessageFormat.format(pattern, args), t)); 283 } 284 285 273 286 private static void logPrivate(Level level, String pattern, Object... args) { 274 287 logPrivate(level, () -> MessageFormat.format(pattern, args));
Note:
See TracChangeset
for help on using the changeset viewer.