Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | Couchbase | Couchbase Server 1.8.x

How to suppress Couchbase Java Client INFO Messages

4 replies [Last post]
  • Login or register to post comments
Wed, 11/28/2012 - 13:00
kkcheungus
Offline
Joined: 11/28/2012
Groups: None

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]

Top
  • Login or register to post comments
Mon, 12/10/2012 - 23:38
mikew
Offline
Joined: 03/14/2011
Groups:

Take a look at this page for information on how to change the log level.

http://code.google.com/p/spymemcached/wiki/Logging

Top
  • Login or register to post comments
Tue, 12/11/2012 - 00:02
kkcheungus
Offline
Joined: 11/28/2012
Groups: None

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.

Top
  • Login or register to post comments
Tue, 12/11/2012 - 08:32
tgrall
Offline
Joined: 09/05/2012
Groups: None

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.

__________________

Tug
@tgrall

Top
  • Login or register to post comments
Tue, 12/11/2012 - 12:29
kkcheungus
Offline
Joined: 11/28/2012
Groups: None

Thank you for everyone's help.

I got to control the log level within the java program now !!!

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker