Java by API/java.util.logging/LogManager
Версия от 17:43, 31 мая 2010; (обсуждение)
LogManager: addPropertyChangeListener(PropertyChangeListener l)
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.logging.LogManager;
public class Main {
public static void main(String[] argv) throws Exception {
// Register for the event
LogManager.getLogManager().addPropertyChangeListener(new PropertyChangeListener() {
// This method is called when configuration file is reread
public void propertyChange(PropertyChangeEvent evt) {
String propName = evt.getPropertyName();
Object oldValue = evt.getOldValue();
Object newValue = evt.getOldValue();
// All values are null
}
});
}
}