List of utility methods to do slf4j Logger
void | rosettaShell(ArrayList rosetta Shell int increment = a.size() / 2; int estimatedBytesI = 0; for (int p = 0; p < 5; p++) { logger.info("increment is: " + increment); int count = 0; for (int i = increment; i < a.size(); i++) { count++; int j = i; ... |
void | set(String key, String value) set mdc.put(key, value); |
void | setbizSeq(String bizSeq) setbiz Seq MDC.clear();
MDC.put("bizSeq", bizSeq);
|
void | setClusterShard(String cluster, String shard) set Cluster Shard MDC.put("xpipe.cluster.shard", "[" + cluster + "." + shard + "]"); |
void | setContext(String value) Puts the passed value in the MDC for key #MAIN_CONTEXT . MDC.put(MAIN_CONTEXT, " [" + value + "]"); |
void | setDefaultLogger() set Default Logger currentLogger.set(defaultLogger); |
void | setLogger(Logger logger) set Logger currentLogger.set(logger); |
void | setOutputFile(String filename) set Output File System.setProperty("org.slf4j.simpleLogger.logFile", filename);
|
void | setRequestId(String requestId) Set the request ID in the logging MDC. MDC.put(REQUEST_KEY, formatRequestIdLogSection(requestId)); MDC.put(REQUEST_ID_KEY, requestId); |
void | sleep(int milliseconds) sleep try { Thread.sleep(milliseconds); log.trace("Sleeping"); } catch (InterruptedException e) { e.printStackTrace(); |