Skip to content

Instantly share code, notes, and snippets.

@chathurangat
Created December 9, 2017 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chathurangat/de928ad0dc52d3f8f91011b8e542679d to your computer and use it in GitHub Desktop.
Save chathurangat/de928ad0dc52d3f8f91011b8e542679d to your computer and use it in GitHub Desktop.
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class Application
{
private final static Logger logger = LoggerFactory.getLogger(Application.class);
public static void main(String[] args) throws Exception
{
logger.info("Application Running on : [{}]", Thread.currentThread().getName());
Thread work = new Thread(() -> {
logger.info(" Runnable instance running on : [{}] ", Thread.currentThread().getName());
});
work.start();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment