monix / shade

Memcached client for Scala
MIT License
106 stars 19 forks source link

How to control logs? #63

Closed vasily802 closed 5 years ago

vasily802 commented 5 years ago

MemcachedConnection emits logs roughly every 1 sec:

23:00:00.339 [Memcached IO over {MemcachedConnection to hostname:11211}] DEBUG n.s.m.MemcachedConnection: Done dealing with queue.
23:00:00.339 [Memcached IO over {MemcachedConnection to hostname:11211}] DEBUG n.s.m.MemcachedConnection: Selecting with delay

Is there any way to tune down these logs? Thank you!

vasily802 commented 5 years ago

I found it. In my case, I use monix/shade in a Play2 app. To tune down memcached logs, I added to src/main/resourcs/logback.xml following lines:

    <logger name="net.spy.memcached" level="warn" />
    <logger name="net.spy.memcached.MemcachedConnection" level="warn" />