Here you can find the source of startTestLogging(String name)
Parameter | Description |
---|---|
name | name of the new log file |
public static void startTestLogging(String name)
//package com.java2s; //License from project: Apache License import org.slf4j.MDC; public class Main { public static final String TEST_NAME = "test-name"; /**/*from w w w .j av a2 s . c o m*/ * Adds the test name to MDC so that sift appender can use it and log the new * log events to a different file * @param name name of the new log file */ public static void startTestLogging(String name) { MDC.put(TEST_NAME, name); } }