-
Bug
-
Resolution: Fixed
-
P3
-
8
-
FX 8 b127
In the file modules/graphics/src/main/java/com/sun/javafx/css/parser/CSSParser.java there's:
private static final PlatformLogger LOGGER;
static {
LOGGER = com.sun.javafx.Logging.getCSSLogger();
final Level level = LOGGER.level();
if (level == null || (
level.compareTo(Level.WARNING) > 0 &&
level != Level.OFF)) {
LOGGER.setLevel(Level.WARNING);
}
}
The consequence is that if the user of an FX app uses a logging.properties file where he writes "css.level = SEVERE" then CSS messages will anyway be logged.
This is surprising: I didn't see the other loggers used by FX platform setting the level, which means full control is let to the end user.
The only way to get rid of CSS messages is to set "css.level = OFF".
private static final PlatformLogger LOGGER;
static {
LOGGER = com.sun.javafx.Logging.getCSSLogger();
final Level level = LOGGER.level();
if (level == null || (
level.compareTo(Level.WARNING) > 0 &&
level != Level.OFF)) {
LOGGER.setLevel(Level.WARNING);
}
}
The consequence is that if the user of an FX app uses a logging.properties file where he writes "css.level = SEVERE" then CSS messages will anyway be logged.
This is surprising: I didn't see the other loggers used by FX platform setting the level, which means full control is let to the end user.
The only way to get rid of CSS messages is to set "css.level = OFF".
- relates to
-
JDK-8097417 Create regression tests that run JavaFX apps with a security manager
- Resolved
-
JDK-8093304 [CSS] "Loaded @font-face font" message should not be logged with INFO
- Resolved