All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.intarsys.tools.logging.SDC Maven / Gradle / Ivy

There is a newer version: 4.11
Show newest version
package de.intarsys.tools.logging;

/**
 * A "simple device context".
 * 

* With this idiom you can associate a simple tag with the current thread that * is referenced from a log formatter when publishing. * */ public class SDC { final static private ThreadLocal message = new ThreadLocal(); static public void clear() { message.remove(); } static public String get() { return message.get(); } static public void set(String value) { message.set(value); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy