/** * Logs a message with {@link Level#FINER finer level}. The message is constructed only when the * logger is enabled for the {@link Level#FINER finer level}. * <p> * If the logger is enabled for the {@link Level#FINER finer level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void finer(final Supplier<String> messageSupplier) { log(Level.FINER, messageSupplier); }
/** * Logs a message with {@link Level#SEVERE severe level}. The message is constructed only when * the logger is enabled for the {@link Level#SEVERE severe level}. * <p> * If the logger is enabled for the {@link Level#SEVERE severe level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void severe(final Supplier<String> messageSupplier) { log(Level.SEVERE, messageSupplier); }
/** * Logs a message with {@link Level#CONFIG config level}. * <p> * If the logger is enabled for the {@link Level#CONFIG config level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void config(final String message) { log(Level.CONFIG, message); }
/** * Logs a message with {@link Level#FINEST finest level}. * <p> * If the logger is enabled for the {@link Level#FINEST finest level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void finest(final String message) { log(Level.FINEST, message); }
/** * Logs a message with {@link Level#FINE fine level}. * <p> * If the logger is enabled for the {@link Level#FINE fine level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void fine(final String message) { log(Level.FINE, message); }
/** * Logs a message with {@link Level#FINER finer level}. * <p> * If the logger is enabled for the {@link Level#FINER finer level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void finer(final String message) { log(Level.FINER, message); }
/** * Logs a message with {@link Level#INFO info level}. * <p> * If the logger is enabled for the {@link Level#INFO info level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void info(final String message) { log(Level.INFO, message); }
/** * Logs a message with {@link Level#SEVERE severe level}. * <p> * If the logger is enabled for the {@link Level#SEVERE severe level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void severe(final String message) { log(Level.SEVERE, message); }
/** * Logs a message with {@link Level#WARNING warning level}. * <p> * If the logger is enabled for the {@link Level#WARNING warning level} the message is sent to * the {@link Handler} registered in the current {@link Context}. * * @param message the message to log * @since 1.0 */ public void warning(final String message) { log(Level.WARNING, message); }
/** * Logs a message with {@link Level#FINEST finest level}. The message is constructed only when * the logger is enabled for the {@link Level#FINEST finest level}. * <p> * If the logger is enabled for the {@link Level#FINEST finest level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void finest(final Supplier<String> messageSupplier) { log(Level.FINEST, messageSupplier); }
/** * Logs a message with {@link Level#INFO info level}. The message is constructed only when the * logger is enabled for the {@link Level#INFO info level}. * <p> * If the logger is enabled for the {@link Level#INFO info level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void info(final Supplier<String> messageSupplier) { log(Level.INFO, messageSupplier); }
/** * Logs a message with {@link Level#CONFIG config level}. The message is constructed only when * the logger is enabled for the {@link Level#CONFIG config level}. * <p> * If the logger is enabled for the {@link Level#CONFIG config level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void config(final Supplier<String> messageSupplier) { log(Level.CONFIG, messageSupplier); }
/** * Logs a message with {@link Level#FINE fine level}. The message is constructed only when the * logger is enabled for the {@link Level#FINE fine level}. * <p> * If the logger is enabled for the {@link Level#FINE fine level} the message is sent to the * {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void fine(final Supplier<String> messageSupplier) { log(Level.FINE, messageSupplier); }
/** * Logs a message with {@link Level#WARNING warning level}. The message is constructed only when * the logger is enabled for the {@link Level#WARNING warning level}. * <p> * If the logger is enabled for the {@link Level#WARNING warning level} the message is sent to * the {@link Handler} registered in the current {@link Context}. * * @param messageSupplier the {@link Supplier} called to produce the message to log * @since 1.0 */ public void warning(final Supplier<String> messageSupplier) { log(Level.WARNING, messageSupplier); }
void preInitialize() { ensureInitialized(null); LOG.log(Level.FINE, "Pre-initialized context for language: {0}", language.getId()); }
boolean patch(PolyglotContextConfig newConfig) { if (isInitialized()) { try { final Env newEnv = LANGUAGE.patchEnvContext(env, newConfig.out, newConfig.err, newConfig.in, Collections.emptyMap(), newConfig.getOptionValues(language), newConfig.getApplicationArguments(language), newConfig.fileSystem); if (newEnv != null) { env = newEnv; LOG.log(Level.FINE, "Successfully patched context of language: {0}", this.language.getId()); return true; } LOG.log(Level.FINE, "Failed to patch context of language: {0}", this.language.getId()); return false; } catch (Throwable t) { if (t instanceof ThreadDeath) { throw t; } LOG.log(Level.FINE, "Exception during patching context of language: {0}", this.language.getId()); throw PolyglotImpl.wrapGuestException(this, t); } } else { return true; } }
private static void logCompilationTime(RegexSource regexSource, long elapsedTimeMain, long elapsedTimeFallback) { LOG_TOTAL_COMPILATION_TIME.log(Level.FINE, "{0}, {1}, {2}, {3}", new Object[]{ DebugUtil.Timer.elapsedToString(elapsedTimeMain + elapsedTimeFallback), DebugUtil.Timer.elapsedToString(elapsedTimeMain), DebugUtil.Timer.elapsedToString(elapsedTimeFallback), DebugUtil.jsStringEscape(regexSource.toString()) }); } }