OnJava8-Examples/logging/InfoLogging.java

16 lines
409 B
Java
Raw Normal View History

2015-06-15 17:47:35 -07:00
//: logging/InfoLogging.java
// <20>2015 MindView LLC: see Copyright.txt
import java.util.logging.*;
public class InfoLogging {
private static Logger logger =
Logger.getLogger("InfoLogging");
public static void main(String[] args) {
logger.info("Logging: INFO-level message");
}
} /* Output:
___[ Error Output ]___
Jun 15, 2015 3:47:52 PM InfoLogging main
INFO: Logging: INFO-level message
*///:~