clojurewerkz / spyglass

A Clojure Memcached client (also: Couchbase, Kestrel). Built on top of SpyMemcached, supports ASCII and binary protocols, strives to be 100% feature complete.
http://clojurememcached.info
67 stars 17 forks source link

Throttling Logging Messages #8

Open mikeflynn opened 11 years ago

mikeflynn commented 11 years ago

We're using spyglass in production now, and it's been great. One minor issue though is the amount of INFO and WARN messages going in to the logs. Granted, we'd like to see the warnings about node distribution and the like, but what is the best way to tweak the logging level for spyglass. I've looked in the docs but couldn't find any mention of it.

Thanks.

michaelklishin commented 11 years ago

Apparently, Spymemcached has its own logging façade. I'd need to investigate how to configure log level without using system properties.

michaelklishin commented 11 years ago

I've added an initial version of a function that would set log level for the JDK logger. However, looks like it's not enough.