Created
December 9, 2017 07:32
-
-
Save chathurangat/8265ed0a277a9680c6e6a485d76d9bbd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | |
new MyThread().start(); | |
} | |
} | |
class MyThread extends Thread | |
{ | |
private final static Logger logger = LoggerFactory.getLogger(MyThread.class); | |
@Override | |
public void run() | |
{ | |
logger.info("MyThread Running on : [{}]", Thread.currentThread().getName()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment