'How to disable logging after migration to Selenium 4

couple days ago I've updated Selenium libraries to the newest 4.1.4. Earlier I used an old version like 3.141.59 and when I executed TestNG tests, then I got only logs from ITestListener, Reporter and from TestNG.

Now when I execute tests I got a bunch of logs I don't need. I have set nothing related to the logs in my code. How can I disable that logs?

It looks like:

[RemoteTestNG] detected TestNG version 7.4.0
08:58:45.409 [main] DEBUG io.netty.util.internal.logging.InternalLoggerFactory - Using SLF4J as the default logging framework
08:58:45.416 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.level: simple
08:58:45.416 [main] DEBUG io.netty.util.ResourceLeakDetector - -Dio.netty.leakDetection.targetRecords: 4
08:58:45.420 [main] DEBUG io.netty.util.ResourceLeakDetectorFactory - Loaded default ResourceLeakDetector: io.netty.util.ResourceLeakDetector@352ff4da
08:58:45.442 [main] DEBUG io.netty.util.internal.PlatformDependent0 - -Dio.netty.noUnsafe: false
08:58:45.442 [main] DEBUG io.netty.util.internal.PlatformDependent0 - Java version: 15
08:58:45.443 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.theUnsafe: available
08:58:45.444 [main] DEBUG io.netty.util.internal.PlatformDependent0 - sun.misc.Unsafe.copyMemory: available
08:58:45.444 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Buffer.address: available
08:58:45.445 [main] DEBUG io.netty.util.internal.PlatformDependent0 - direct buffer constructor: unavailable: Reflective setAccessible(true) disabled
08:58:45.446 [main] DEBUG io.netty.util.internal.PlatformDependent0 - java.nio.Bits.unaligned: available, true


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source