How to suppress Couchbase Java Client INFO Messages
Hello;
When I run Couchbase client, during the execution of getting a new client
couchbaseClient = new CouchbaseClient(URI_LIST, "default", "");
couchbaseClient.shutdown(SHUT_DOWN_WAIT_TIME, TimeUnit.SECONDS);
The following messages are display.
Is there a way to suppress these messages ?
I have program logic output and these INFO message crowd out the output log make it hard to trace my
applicaiton logic.
Thanks
KK
2012-11-28 14:55:10.647 INFO com.couchbase.client.CouchbaseConnection: Added {QA sa=/192.168.111.141:11210, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2012-11-28 14:55:10.658 INFO com.couchbase.client.CouchbaseConnection: Connection state changed for sun.nio.ch.SelectionKeyImpl@4fc8157
2012-11-28 14:55:11.019 INFO com.couchbase.client.CouchbaseConnection: Shut down Couchbase client
UserExternalIdentityAssociation [ExtId=8D9MdUYUQzxNDSN65tPaFfHSs, AccountTypeId=2, UserId=3760, CreateDate=2012-11-21 15:42:59.71]
Thank you for the reply.
Is there a parameter or setting that we can set during the start up of Coachbase that change the log setting ?
All the answers in the http://code.google.com/p/spymemcached/wiki/Logging
Is about spymemcached, since I am revaluating Coachbase, I am not sure what is the relevance or relationship
of spymemcached setting and couchbase.
Some working example will be most appreciated.
Hello,
Have you seen this part of the Couchbase Java Client library documentation:
http://www.couchbase.com/docs/couchbase-sdk-java-1.0/java-api-configurin...
It is a complement to mikew's pointer, should be sufficient.
This is based on standard login options, as you can see the message you have the INFO level, if you want to remove them you just need to change the level in your code or configuration. The levels in descending order are:
- SEVERE (highest value)
- WARNING
- INFO
- CONFIG
- FINE
- FINER
- FINEST (lowest value)
Mikew has pointed you to the SpyMemcached documentation since internally Couchbase Java Client use SpyMemcached to connect to Couchbase server using Memcached protocol.
Thank you for everyone's help.
I got to control the log level within the java program now !!!
Take a look at this page for information on how to change the log level.
http://code.google.com/p/spymemcached/wiki/Logging