[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-openjfx-dev
Subject:    Re: How to suppress platform logger output
From:       Werner Lehmann <lehmann () media-interactive ! de>
Date:       2014-09-19 15:03:58
Message-ID: 541C45DE.2020704 () media-interactive ! de
[Download RAW message or body]

Hi Peter,

this one seems to work, based on your former suggestion:
 
com.sun.javafx.binding.Logging.getLogger().setLevel(sun.util.logging.PlatformLogger.Level.OFF);

Thanks for that. Of course I am not sure if that also kills other 
binding-related logs I might be interested in but generally I'd prefer a 
runtime exception anyway. And in this particular case of a select 
binding it is normal operation to come across null values.

About the slf4j bridge, I had shortly looked into it but it feels a bit 
extreme to add a jar file, modify logging, and pay the perfomance 
penalty mentioned on that site to get a selectString binding :)

Werner

On 19.09.2014 16:46, Peter Levart wrote:
> Alternatively, you can have PlatformLogger output through Log4J. Use
> jul-to-slf4j bridge and slf4j-Log4J backend.
>
> See here:
>
> http://www.slf4j.org/legacy.html#jul-to-slf4j

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic