Redisson: How to disable logger?

Created on 9 Jan 2019  ·  4Comments  ·  Source: redisson/redisson

Expected behavior

slience log

Actual behavior

...
2019-01-09 16:51:09.096 [redisson-netty-5-3] TRACE o.r.client.handler.CommandDecoder - reply: *2
*40
$4
name
$15
172.21.0.9:6380
$2
ip
$10
...

Steps to reproduce or test case

    val config = Config()
    config.transportMode = TransportMode.NIO
    config.useSentinelServers()
        .setMasterName("redis-master")
        .addSentinelAddress("redis://127.0.0.1:26379")
        .password = "xxx"

    val redisson = Redisson.create(config)

    val keyObject = redisson.getBucket<String>("key")
    keyObject.set("value")

Redis version

5.0.3

Redisson version

3.10.0

Redisson configuration

    val config = Config()
    config.transportMode = TransportMode.NIO
    config.useSentinelServers()
        .setMasterName("redis-master")
        .addSentinelAddress("redis://127.0.0.1:26379")
        .password = "xxx"

Most helpful comment

I changed my logback.xml to
<logger name="org.redisson" level="INFO"/>

but it still logs.

All 4 comments

set logging level to info for org.redisson package in your logger config

I changed my logback.xml to
<logger name="org.redisson" level="INFO"/>

but it still logs.

How to do this with gradle?

@AdityaAnand1 did you get to know how to enable/disable logging of redisson with the gradle

Was this page helpful?
0 / 5 - 0 ratings