/** * Gets a log record for the given key from this resource bundle or one of its parents. * * @param level The log record level. * @param key The key for the desired string. * @return The string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key) throws MissingResourceException { return getResources(null).getLogRecord(level, key); }
/** * Gets a log record for the given key. Replaces all occurence of "{0}" * with values of {@code arg0}. * * @param level The log record level. * @param key The key for the desired string. * @param arg0 Value to substitute to "{0}". * @return The formatted string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key, final Object arg0) throws MissingResourceException { return getResources(null).getLogRecord(level, key, arg0); }
/** * Gets a log record for the given key. Replaces all occurence of "{0}", * "{1}", with values of {@code arg0}, {@code arg1}. * * @param level The log record level. * @param key The key for the desired string. * @param arg0 Value to substitute to "{0}". * @param arg1 Value to substitute to "{1}". * @return The formatted string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key, final Object arg0, final Object arg1) throws MissingResourceException { return getResources(null).getLogRecord(level, key, arg0, arg1); }
/** * Gets a log record for the given key. Replaces all occurence of "{0}", * "{1}", with values of {@code arg0}, {@code arg1}, etc. * * @param level The log record level. * @param key The key for the desired string. * @param arg0 Value to substitute to "{0}". * @param arg1 Value to substitute to "{1}". * @param arg2 Value to substitute to "{2}". * @return The formatted string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key, final Object arg0, final Object arg1, final Object arg2) throws MissingResourceException { return getResources(null).getLogRecord(level, key, arg0, arg1, arg2); }
/** * Gets a log record for the given key. Replaces all occurence of "{0}", * "{1}", with values of {@code arg0}, {@code arg1}, etc. * * @param level The log record level. * @param key The key for the desired string. * @param arg0 Value to substitute to "{0}". * @param arg1 Value to substitute to "{1}". * @param arg2 Value to substitute to "{2}". * @param arg3 Value to substitute to "{3}". * @return The formatted string for the given key. * @throws MissingResourceException If no object for the given key can be found. */ public static LogRecord format(final Level level, final int key, final Object arg0, final Object arg1, final Object arg2, final Object arg3) throws MissingResourceException { return getResources(null).getLogRecord(level, key, arg0, arg1, arg2, arg3); } }
/** * Prepares a message to be logged if any provider has been registered. */ private static StringBuffer getLogHeader(final Class category) { return new StringBuffer(Logging.getResources(null).getString( LoggingKeys.FACTORY_IMPLEMENTATIONS_$1, Utilities.getShortName(category))); }
final LogRecord record = Logging.getResources(locale).getLogRecord( OPERATION, LoggingKeys.APPLIED_OPERATION_$4, getName((source!=null) ? source : result, locale),
final String shortName = (index>=0) ? operation.substring(index+1) : operation; final Locale locale = getLocale(); final LogRecord record = Logging.getResources(locale).getLogRecord( AbstractProcessor.OPERATION, LoggingKeys.SAMPLE_TRANSCODE_$3, new Object[] {
record = Logging.getResources(null).getLogRecord(Level.WARNING, LoggingKeys.CANT_REGISTER_JAI_OPERATION_$1, op); record.setThrown(exception);
targetGG = new GridGeometry2D(actualGR, gridToCRS, targetCRS); if (!automaticGR) { log(Logging.getResources(locale).getLogRecord(Level.WARNING, LoggingKeys.ADJUSTED_GRID_GEOMETRY_$1, sourceCoverage.getName().toString(locale))); .equals(targetImage.getBounds()) : targetGG; if (AbstractProcessor.LOGGER.isLoggable(LOGGING_LEVEL)) { log(Logging.getResources(locale).getLogRecord(LOGGING_LEVEL, LoggingKeys.APPLIED_RESAMPLE_$11, new Object[] {