Java Utililty Methods slf4j Logger

List of utility methods to do slf4j Logger

Description

The list of methods to do slf4j Logger are organized into topic(s).

Method

voidrosettaShell(ArrayList a)
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;
...
voidset(String key, String value)
set
mdc.put(key, value);
voidsetbizSeq(String bizSeq)
setbiz Seq
MDC.clear();
MDC.put("bizSeq", bizSeq);
voidsetClusterShard(String cluster, String shard)
set Cluster Shard
MDC.put("xpipe.cluster.shard", "[" + cluster + "." + shard + "]");
voidsetContext(String value)
Puts the passed value in the MDC for key #MAIN_CONTEXT .
MDC.put(MAIN_CONTEXT, " [" + value + "]");
voidsetDefaultLogger()
set Default Logger
currentLogger.set(defaultLogger);
voidsetLogger(Logger logger)
set Logger
currentLogger.set(logger);
voidsetOutputFile(String filename)
set Output File
System.setProperty("org.slf4j.simpleLogger.logFile", filename);
voidsetRequestId(String requestId)
Set the request ID in the logging MDC.
MDC.put(REQUEST_KEY, formatRequestIdLogSection(requestId));
MDC.put(REQUEST_ID_KEY, requestId);
voidsleep(int milliseconds)
sleep
try {
    Thread.sleep(milliseconds);
    log.trace("Sleeping");
} catch (InterruptedException e) {
    e.printStackTrace();