javafx - How to configure Java logging in application code -
i configure application logging within javafx application. looks this.
(handler handler : logger.getlogger("").gethandlers()) { handler.setformatter(new 1 lineformatter()); handler.setlevel(level.all); } logger.getlogger("").setlevel(level.fine);
unfortunately changes log level packages , drowned messages from, example, javafx package. how differentiate log levels between packages? have seen examples doing using configuration file, prefer doing in code.
instead of
logger.getlogger("").setlevel(level.fine);
set packages want change, e.g.
logger.getlogger("javafx").setlevel(level.fine);
Comments
Post a Comment