![JAR search and dependency download from the Maven repository](/logo.png)
com.shedhack.thread.context.handler.LoggingAfterSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of thread-context-handler Show documentation
Show all versions of thread-context-handler Show documentation
Context enabler, for helping with debugging/logging
package com.shedhack.thread.context.handler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
*
* Logs the thread context, using slf4j, at INFO level.
*
*
* @author imamchishty
*/
public class LoggingAfterSet implements ThreadContextAfterSet {
private static Logger LOGGER = LoggerFactory.getLogger(LoggingAfterSet.class);
/**
* Logs the context at INFO level.
*/
public void afterSet(String context) {
LOGGER.info(context);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy