Return-Path: Delivered-To: apmail-avro-user-archive@www.apache.org Received: (qmail 65355 invoked from network); 12 Nov 2010 22:29:31 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 12 Nov 2010 22:29:31 -0000 Received: (qmail 55326 invoked by uid 500); 12 Nov 2010 22:30:02 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 55270 invoked by uid 500); 12 Nov 2010 22:30:02 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 55262 invoked by uid 99); 12 Nov 2010 22:30:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:30:02 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 Nov 2010 22:29:55 +0000 Received: (qmail 65222 invoked by uid 99); 12 Nov 2010 22:29:04 -0000 Received: from localhost.apache.org (HELO [192.168.168.106]) (127.0.0.1) (smtp-auth username cutting, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Nov 2010 22:29:03 +0000 Message-ID: <4CDDBFCE.8040603@apache.org> Date: Fri, 12 Nov 2010 14:29:34 -0800 From: Doug Cutting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@avro.apache.org Subject: Re: How to remove the debug info? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit These are printed because they're logged at the INFO level and the default logger is slf4j's SimpleLogger: http://www.slf4j.org/api/org/slf4j/impl/SimpleLogger.html To disable them you could put a different slf4j logging implementation jar on your classpath. E.g., instead of slf4j-simple.jar, use slf4j-nop.jar to disable log output altogether, or use slf4j-jdk14.jar (Java's built-in logging system) or slf4j-log4j12 (log4j) and configure the corresponding logging system. Logging network connections at INFO seems reasonable to me. But if folks feel this is overly verbose then we could reduce these to DEBUG level so they'd not be printed by default. Doug On 11/12/2010 10:15 AM, Yuduo Zhou wrote: > Hi all, > This is a rookie question, but I didn't find a solution. > How can I get rid of the debug info printed by avro? Like these: > ... > 58250 [Thread-210] INFO org.apache.avro.ipc.SocketTransceiver - closing > to /129.79.49.157:20000 > 59048 [Thread-211] INFO org.apache.avro.ipc.SocketTransceiver - closing > to /129.79.49.157:20000 > 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000 > ] INFO > org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49441 > > 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000 > ] INFO org.apache.avro.ipc.SocketServer - > stopping /0:0:0:0:0:0:0:0 > 60293 [SocketServer on 0.0.0.0/0.0.0.0:50000 > ] INFO > org.apache.avro.ipc.SocketTransceiver - open to /129.79.49.157:49445 > > ... > > Yuduo Zhou >