Java slf4j Logger sleep(int milliseconds)

Here you can find the source of sleep(int milliseconds)

Description

sleep

License

Apache License

Declaration

public static void sleep(int milliseconds) 

Method Source Code


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

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

public class Main {
    private static Logger log = LoggerFactory.getLogger("TEST");

    public static void sleep(int milliseconds) {
        try {/* w w w  .  j  a va 2  s.  c o  m*/
            Thread.sleep(milliseconds);
            log.trace("Sleeping");
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    private void trace(String format, Object... arguments) {
        log.trace(format, arguments);
    }
}

Related

  1. setContext(String value)
  2. setDefaultLogger()
  3. setLogger(Logger logger)
  4. setOutputFile(String filename)
  5. setRequestId(String requestId)
  6. sleepMs(Logger logger, long timeMs)
  7. stacktrace(Logger log, Throwable t)
  8. startTestLogging(String name)
  9. stopTestLogging()