/** * Exports a snapshot of the request log of the current thread without resetting the request log for that thread. * * @return the log context of the current thread */ public static RequestLog copy() { RequestLog current = RLOG.get(); return new RequestLog(current); }
/** * Exports a snapshot of the request log of the current thread and also resets the request log for that thread. * * @return the log context of the current thread */ public static RequestLog dump() { RequestLog current = RLOG.get(); RequestLog copy = new RequestLog(current); current.clear(); RLOG.remove(); return copy; }