P
Pete
Hi
I am trying to use the Logger "entering & exiting" method but with no
joy.
Below is the simple program that I am running under Eclipse and get
the following output in the console tab.
08-Jan-2009 19:43:06 MyLogger main
WARNING: My first log
Can you explain why I am not getting anu output for the calls to
entering and exiting please.
Thank You.
Pete
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class MyLogger {
public static void main(String[] args) {
Logger logger = Logger.getLogger("MyLog");
logger.setLevel(Level.ALL);
logger.entering("MyLogger", "main");
logger.log(Level.WARNING, "My first log");
logger.exiting("MyLogger", "main");
}
}
I am trying to use the Logger "entering & exiting" method but with no
joy.
Below is the simple program that I am running under Eclipse and get
the following output in the console tab.
08-Jan-2009 19:43:06 MyLogger main
WARNING: My first log
Can you explain why I am not getting anu output for the calls to
entering and exiting please.
Thank You.
Pete
import java.io.IOException;
import java.util.logging.FileHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.SimpleFormatter;
public class MyLogger {
public static void main(String[] args) {
Logger logger = Logger.getLogger("MyLog");
logger.setLevel(Level.ALL);
logger.entering("MyLogger", "main");
logger.log(Level.WARNING, "My first log");
logger.exiting("MyLogger", "main");
}
}