Here you can find the source of setContext(String value)
Parameter | Description |
---|---|
value | the main context |
public static void setContext(String value)
//package com.java2s; //License from project: Open Source License import org.slf4j.MDC; public class Main { public static final String MAIN_CONTEXT = "context"; /**/* ww w . j ava 2 s.c o m*/ * Puts the passed value in the {@link MDC} for key {@link #MAIN_CONTEXT}. * @param value the main context */ public static void setContext(String value) { MDC.put(MAIN_CONTEXT, " [" + value + "]"); } }