@Override public void deleted(String filename) { Log.debug("A file was deleted", "file", filename); deleted.add(filename); }
@Override public void created(String filename) { Log.debug("A file was created", "file", filename); created.add(filename); }
@Override public synchronized <T> T inject(T target, Map<String, Object> properties) { Log.debug("Inject", "target", target, "properties", properties); return register(target, properties); }
public AbstractInsightful(String kind, String name) { this.creatorThread = Thread.currentThread(); this.kind = kind; this.name = name; Log.debug("Creating object", "kind", kind, "name", name, "creatorThread", creatorThread.getName(), "class", getClass().getSimpleName()); Insights.register(this); }
public static void debug(String msg, String key1, Object value1, String key2, long value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public static void debug(String msg, String key1, Object value1, String key2, double value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public static void debug(String msg, String key1, Object value1, String key2, boolean value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public static void debug(String msg, String key1, long value1, String key2, long value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public static void debug(String msg, String key1, long value1, String key2, double value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public static void debug(String msg, String key1, long value1, String key2, boolean value2) { if (Log.isDebugEnabled()) { Log.debug(msg, key1, value1, key2, value2); } }
public synchronized Ctx span() { ensureNotClosed(); referenceCounter++; Log.debug("Spanning context", "ctx", this); return this; }
@Override public synchronized <T> T singleton(Class<T> type) { Log.debug("Singleton", "type", type); return provideIoCInstanceOf(null, type, null, null, false); }
public static void debug(String msg, String key, double value) { if (Log.isDebugEnabled()) { Log.debug(msg, key, value); } }
private void init(String folder) { if (!watching.contains(folder) && new File(folder).exists()) { Log.debug("Watching folder for changes", "folder", folder, "recursive", recursive); Path dir = Paths.get(folder); if (recursive) { startWatchingTree(dir); } else { init(dir); } watching.add(folder); } }
synchronized void close() { ensureNotClosed(); Log.debug("Closing context", "ctx", this); referenceCounter--; if (referenceCounter == 0) { clear(); } else if (referenceCounter < 0) { throw new IllegalStateException("Reference counter < 0 for context: " + this); } }
static void close(CloseableHttpAsyncClient client) { try { Log.debug("Closing HTTP client", "client", client); client.close(); } catch (IOException e) { throw U.rte(e); } }
public static Ctx open(String tag) { Ctx ctx = new Ctx(tag); Log.debug("Opening context", "ctx", ctx); attach(ctx); return ctx; }
@Override public synchronized void reset() { if (!state.isEmpty()) { Log.info("Resetting IoC context", "context", this); } else { Log.debug("Resetting IoC context", "context", this); } state.reset(); metadata.clear(); beanProvider = null; activate.reset(); }
public static void start(Object test) { runMainClass(test); for (RapidoidModule mod : RapidoidModules.getAllAvailable()) { Log.debug("Initializing the test", "module", mod.name(), "order", mod.order()); mod.initTest(test); } Msc.logSection("START TEST"); }