Here you can find the source of stopTestLogging()
public static String stopTestLogging()
//package com.java2s; //License from project: Apache License import org.slf4j.MDC; public class Main { public static final String TEST_NAME = "test-name"; /**/* www . j a v a2 s. c om*/ * Removes the key (log file name) from MDC * @return name of the log file, if one existed in MDC */ public static String stopTestLogging() { String name = MDC.get(TEST_NAME); MDC.remove(TEST_NAME); return name; } }