Java slf4j Logger setDefaultLogger()

Here you can find the source of setDefaultLogger()

Description

set Default Logger

License

Apache License

Declaration

public static void setDefaultLogger() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Main {
    private static ThreadLocal<Logger> currentLogger = new ThreadLocal<Logger>();
    private static Logger defaultLogger = LoggerFactory.getLogger("defaultLogger");

    public static void setDefaultLogger() {
        currentLogger.set(defaultLogger);
    }/*from  w  w  w.ja va  2  s  .co m*/
}

Related

  1. rosettaShell(ArrayList a)
  2. set(String key, String value)
  3. setbizSeq(String bizSeq)
  4. setClusterShard(String cluster, String shard)
  5. setContext(String value)
  6. setLogger(Logger logger)
  7. setOutputFile(String filename)
  8. setRequestId(String requestId)
  9. sleep(int milliseconds)