netty.io java 禁用调试消息

netty.io java disable debug messages

所以我用 netty 创建了一个应用程序,它运行良好,但它给我的调试消息如下所示:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by io.netty.util.internal.PlatformDependent0 
(file:/C:/Users/******/.m2/repository/io/netty/netty-all/5.0.0.Alpha2/netty-all-5.0.0.Alpha2.jar) to 
field java.nio.Buffer.address
WARNING: Please consider reporting this to the maintainers of 
io.netty.util.internal.PlatformDependent0
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Juni 20, 2020 9:42:21 NACHM. io.netty.util.internal.PlatformDependent <clinit>
INFORMATION: Your platform does not provide complete low-level API for accessing direct buffers 
reliably. Unless explicitly requested, heap buffer will always be preferred to avoid potential system 
unstability.

我在 5.0.0.Alpha2 版本上使用 netty-all,我只想禁用这些消息。

我发现 Logger.getLogger("io.netty").setLevel(Level.OFF); 可以解决问题并禁用 debug/log 消息。