14 lines
369 B
Java
14 lines
369 B
Java
//: logging/InfoLogging2.java
|
|
// Guaranteeing proper class and method names
|
|
import java.util.logging.*;
|
|
import java.io.*;
|
|
|
|
public class InfoLogging2 {
|
|
private static Logger logger =
|
|
Logger.getLogger("InfoLogging2");
|
|
public static void main(String[] args) {
|
|
logger.logp(Level.INFO, "InfoLogging2", "main",
|
|
"Logging an INFO-level message");
|
|
}
|
|
} ///:~
|