262728293031323334
private static ThreadLocal<LoggingContext> currentContext = new ThreadLocal<LoggingContext>(); @Override public LoggingContext establish() { LoggingContext lc = new LoggingContextImpl(); currentContext.set(lc); return lc; }
43444546474849505152
AuraImpl.getLoggingAdapter().release(); } @Override public void startTimer(String name) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.startTimer(name); } }
51525354555657585960
} } @Override public void startAction(String actionName) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.startAction(actionName); } }
59606162636465666768
} } @Override public void stopAction(String actionName) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.stopAction(actionName); } }
67686970717273747576
} } @Override public void stopTimer(String name) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.stopTimer(name); } }
7576777879808182838485
} } @Override public long getTime(String name) { LoggingContext lc = getLoggingContext(); if (lc == null) { return -1L; } return lc.getTime(name); }
84858687888990919293
return lc.getTime(name); } @Override public void resetTimer(String name) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.resetTimer(name); } }
9293949596979899100101102
} } @Override public long getNum(String key) { LoggingContext lc = getLoggingContext(); if (lc == null) { return -1L; } return lc.getNum(key); }
101102103104105106107108109110
return lc.getNum(key); } @Override public void incrementNum(String key) { LoggingContext lc = getLoggingContext(); if (lc != null) { lc.incrementNum(key); } }
112113114115116117118119120121
@Override public void incrementNumBy(String key, Long num) { if (num == null) { return; } LoggingContext lc = getLoggingContext(); if (lc != null) { lc.incrementNumBy(key, num); } }