Created
April 15, 2018 16:14
-
-
Save iamrajendra/be1b93d08259f1011afdaff66a5192c2 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 java.util.logging.Logger; | |
public class MyClass { | |
private final static Logger logger; | |
public MyClass(Logger logger) { | |
this.logger = logger; | |
// write an info log message | |
logger.info("This is a log message.") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment