/** * Write the request log object of the current thread as JSON. * The thread's request log is cleared after a call to this method. */ public static void log() { RequestLog current = RLOG.get(); if (current.info == null) { LOG.warn("Attempted to log while request log object was uninitialized"); return; } LOG.info(export()); current.clear(); }