Java Code Examples for java.util.logging.Handler.publish()

The following are Jave code examples for showing how to use publish() of the java.util.logging.Handler class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: incubator-netbeans   File: TopLogging.java   View Source Code Vote up 4 votes
public void publish(LogRecord record) {
    for (Handler h : instances) {
        h.publish(record);
    }
}
 
Example 2
Project: incubator-netbeans   File: LogsTooEarlyTest.java   View Source Code Vote up 4 votes
@Override
public void publish(LogRecord record) {
    for (Handler h : Lookup.getDefault().lookupAll(Handler.class)) {
        h.publish(record);
    }
}