Ignore:
Timestamp:
2017-09-07T00:37:06+02:00 (2 years ago)
Author:
wiktorn
Message:

Use tools.Logging instead of FeatureAdapter.getLogger

See: #15229

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/Logging.java

    r12621 r12765  
    271271    }
    272272
     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
    273286    private static void logPrivate(Level level, String pattern, Object... args) {
    274287        logPrivate(level, () -> MessageFormat.format(pattern, args));
Note: See TracChangeset for help on using the changeset viewer.