users@glassfish.java.net

Re: Not needed logs while deploying stand alone ejb-module:

From: <glassfish_at_javadesktop.org>
Date: Mon, 28 Jan 2008 08:20:12 PST

Ok, I've managed to solve it. I've wrote simple log filter:

[i]public class MBeanLogFilter implements java.util.logging.Filter {
    
    /** Creates a new instance of MBeanLogFilter */
    public MBeanLogFilter() {
    }

    public boolean isLoggable(LogRecord record) {
        if(record.getMessage().startsWith("Deferred")) {
            return false;
        }
        return true;
    }
    
}[/i]

And put name of class to (in Glassfish admin console) Application Server->Logging->Log Filter: MBeanLogFilter. Now it won't show anymore that logs(starting on string "Deferred")
[Message sent by forum member 'mckswk' (mckswk)]

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