OnJava8-Examples/logging/InfoLogging.java

14 lines
345 B
Java
Raw Normal View History

2015-05-05 11:20:13 -07:00
//: logging/InfoLogging.java
import java.util.logging.*;
public class InfoLogging {
private static Logger logger =
Logger.getLogger("InfoLogging");
public static void main(String[] args) {
2015-05-18 23:05:20 -07:00
logger.info("Logging: INFO-level message");
2015-05-05 11:20:13 -07:00
}
2015-05-18 23:05:20 -07:00
} /* Output:
May 13, 2015 6:26:41 PM InfoLogging main
INFO: Logging: INFO-level message
*///:~