users@glassfish.java.net

Customer Logger Question

From: <glassfish_at_javadesktop.org>
Date: Wed, 19 Nov 2008 07:53:01 PST

I have an MBean that loaded and tied to a timer event (not sure if that matters at all). In the bean I have

import java.util.logging.Logger;

public class Test implements TestMXBean, NotificationListener {

    private static Logger logger = Logger.getLogger(Test.class.getName());

    ....

    public void handleNotification(Notification notification, Object handback) {
                 logger.finer("Inside test - FINER");
                 logger.fine("Inside test - FINE");
                 logger.info("Inside test - INFO");
                 logger.warning("Inside test - WARNING");
                 logger.severe("Inside test - SEVERE");
    }
}

I know the bean is running, because I've changed it to pop a JFrame, which I see. The problem I'm having is that I can't find any of my messages in the log files.

I've tried specifying a custom logger as com.MyPackageName, but that doesn't show anything. Any ideas?
[Message sent by forum member 'preston001' (preston001)]

http://forums.java.net/jive/thread.jspa?messageID=317613