com.jgoodies.binding.util
Class LoggingUtils
java.lang.Objectcom.jgoodies.binding.util.LoggingUtils
public final class LoggingUtils
extends java.lang.Object
Assists in logging changes in bound bean properties.
- Andrej Golovnin
- Karsten Lentzsch
static void | logPropertyChanges(Object bean)- Registers a PropertyChangeListener with the specified bean
that logs all PropertyChangeEvents fired by this bean
using the default Logger and default log level.
|
static void | logPropertyChanges(Object bean, Logger logger)- Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and the default log level.
|
static void | logPropertyChanges(Object bean, Logger logger, Level level)- Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and log level.
|
static void | logPropertyChanges(Object bean, String propertyName)- Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the default Logger and default log level.
|
static void | logPropertyChanges(Object bean, String propertyName, Logger logger)- Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the specified Logger and the default log level.
|
static void | logPropertyChanges(Object bean, String propertyName, Logger logger, Level level)- Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property, Logger,
and log level.
|
static void | setDefaultLevel(Level level)- Sets the default log level to be used when logging PropertyChangeEvents.
|
logPropertyChanges
public static void logPropertyChanges(Object bean)
Registers a PropertyChangeListener with the specified bean
that logs all PropertyChangeEvents fired by this bean
using the default Logger and default log level.
bean - the bean to log PropertyChangeEvents from
logPropertyChanges
public static void logPropertyChanges(Object bean,
Logger logger) Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and the default log level.
bean - the bean to log PropertyChangeEvents fromlogger - the Logger to be used to log PropertyChangeEvents
logPropertyChanges
public static void logPropertyChanges(Object bean,
Logger logger,
Level level) Registers a PropertyChangeListener with the specified bean, which logs
all PropertyChangeEvents fired by the given bean using the specified
Logger and log level.
bean - the bean to log PropertyChangeEvents fromlogger - the Logger to be used to log PropertyChangeEventslevel - the log level
logPropertyChanges
public static void logPropertyChanges(Object bean,
String propertyName) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the default Logger and default log level.
bean - the bean to log PropertyChangeEvents frompropertyName - the name of the property which PropertyChangeEvents
should be logged
logPropertyChanges
public static void logPropertyChanges(Object bean,
String propertyName,
Logger logger) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property using
the specified Logger and the default log level.
bean - the bean to log PropertyChangeEvents frompropertyName - the name of the property which PropertyChangeEvents
should be loggedlogger - the Logger to be used to log PropertyChangeEvents
logPropertyChanges
public static void logPropertyChanges(Object bean,
String propertyName,
Logger logger,
Level level) Registers a named PropertyChangeListener with the specified bean,
which logs all PropertyChangeEvents of the given property, Logger,
and log level.
bean - the bean to log PropertyChangeEvents frompropertyName - the name of the property which PropertyChangeEvents
should be loggedlogger - the Logger to be used to log PropertyChangeEventslevel - the log level
setDefaultLevel
public static void setDefaultLevel(Level level)
Sets the default log level to be used when logging PropertyChangeEvents.
The initial default level is Level.FINE.
level - the default level to be used if no custom level
has been provided
Copyright © 2002-2008 JGoodies Karsten Lentzsch. All Rights Reserved.