Java slf4j Logger setLogger(Logger logger)

Here you can find the source of setLogger(Logger logger)

Description

set Logger

License

Apache License

Declaration

public static void setLogger(Logger logger) 

Method Source Code


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

import org.slf4j.Logger;

public class Main {
    private static ThreadLocal<Logger> currentLogger = new ThreadLocal<Logger>();

    public static void setLogger(Logger logger) {
        currentLogger.set(logger);// www  .j  a va 2s. com
    }
}

Related

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