From user-return-27688-apmail-commons-user-archive=commons.apache.org@commons.apache.org Wed Aug 15 14:02:04 2012 Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 00B49DBC8 for ; Wed, 15 Aug 2012 14:02:04 +0000 (UTC) Received: (qmail 79580 invoked by uid 500); 15 Aug 2012 14:02:02 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 79398 invoked by uid 500); 15 Aug 2012 14:02:02 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 79389 invoked by uid 99); 15 Aug 2012 14:02:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 14:02:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of raffaelesgarro@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vb0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Aug 2012 14:01:55 +0000 Received: by vbbfq11 with SMTP id fq11so1984329vbb.30 for ; Wed, 15 Aug 2012 07:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=65nKxwzChKjoCThatd92eXbzBg38g5tOefq5vFR+RxA=; b=wcGw2RoFLi+8L0wMgLFuvYopjaFnoswbo+BhB5ekDJpSgcKv5baU0pMq0P6xnmWz7o 5vlHfRdNCNgSmpoudoGZiRRpTm8Q6wBf1miNmTAiOboXBFPQ7IAXYJaS1lAf0UjRMVk+ Wk9In2uVHX+NdDuvZlAUrbdjQq8mNXiMrXte+lt9uEpYvjJAmVW4O6RbHNIELb/luvGq YcTju4X/nw6718/GCTKygjjrN+c+oD+V7CLqB3v8J7L2Otw+CYYBVu5kJz1u+KSDvm8a V4ilhxw0f9TzghPkYsfH+wOF09sbyz3AvNakvuok1ie/f/MWU0Hk49lVuxaBFHF3rue7 gGQA== MIME-Version: 1.0 Received: by 10.52.35.99 with SMTP id g3mr11252143vdj.21.1345039294896; Wed, 15 Aug 2012 07:01:34 -0700 (PDT) Received: by 10.220.46.80 with HTTP; Wed, 15 Aug 2012 07:01:34 -0700 (PDT) Date: Wed, 15 Aug 2012 16:01:34 +0200 Message-ID: Subject: [net][ftp] does commons net use any logging at all? From: Raffaele Sgarro To: user@commons.apache.org Content-Type: multipart/alternative; boundary=20cf30780b1e619ab204c74e5d82 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30780b1e619ab204c74e5d82 Content-Type: text/plain; charset=ISO-8859-1 I was looking for a way to enable verbose logging for commons-net (specifically, I'm using the FTP library), but I can't find anything online, and a quick tour of the sources didn't help me. Can anybody tell me if such an option exist? For example, with Apache HTTP client one can easily examine all the raw socket communication just by setting the log level to DEBUG and configuring an appender. It would be better if commons-net had this feature, instead of cluttering client code with endless series of System.out.println(replyText) --20cf30780b1e619ab204c74e5d82--