commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject Re: [net][ftp] does commons net use any logging at all?
Date Wed, 15 Aug 2012 15:17:51 GMT
I guess one option would be to have ProtocolCommandListener implementations
for Log4J, JUL, and so on.

Gary

On Wed, Aug 15, 2012 at 11:01 AM, Raffaele Sgarro
<raffaelesgarro@gmail.com>wrote:

> Thanks Gary. At least, there is the aforementioned ProtocolCommandListener
> which makes it easy to add the feature. Sure, it would be more efficient to
> just put those 10 lines of code required to log ProtocolCommandEvents
> directly in the [net] code, so one just needs to specify the DEBUG level in
> the logging configuration file
>
> 2012/8/15 Gary Gregory <garydgregory@gmail.com>
>
> > AFAIK, there is no logging in [net].
> >
> > You can create a JIRA for requesting the feature.
> >
> > This will be followed by the usual debate as to which logging API to use
> ;)
> >
> > Gary
> >
> > On Wed, Aug 15, 2012 at 10:01 AM, Raffaele Sgarro
> > <raffaelesgarro@gmail.com>wrote:
> >
> > > 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)
> > >
> >
> >
> >
> > --
> > E-Mail: garydgregory@gmail.com | ggregory@apache.org
> > JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
> > Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
> > Blog: http://garygregory.wordpress.com
> > Home: http://garygregory.com/
> > Tweet! http://twitter.com/GaryGregory
> >
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
JUnit in Action, 2nd Ed: <http://goog_1249600977>http://bit.ly/ECvg0
Spring Batch in Action: <http://s.apache.org/HOq>http://bit.ly/bqpbCK
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message