Hi

What you see from the documentation is the output of Apache Ftp Server (part
of Apache Mina) running embedded inside the camel-ftp unit-tests.

When you run the Apache Ftp Server standalone then this is how you can
configure it's logging: 

http://mina.apache.org/ftpserver-project/configuration_logging.html

And this is how we boot it up:

https://github.com/apache/camel/blob/master/components/camel-ftp/src/test/java/org/apache/camel/component/file/remote/FtpServerTestSupport.java#L60

So that both Camel as well as Apache Ftp Server itself *share* the same
logging configuration (src/test/resources/log4j.properties). So if you want
to see the Apache Ftp Server logs as well simply tweak the log-level at the
following line from WARNING => DEBUG:

https://github.com/apache/camel/blob/master/components/camel-ftp/src/test/resources/log4j.properties#L30

Then in addition to what Camel logs you should also see what you're looking
for (inside target/camel-ftp-test.log file).

That all said you could also make use of any other Ftp-Server out there for
your own tests, e.g. FileZilla:

https://filezilla-project.org/

But then you would need to grab it's documentation to see how to configure
the logging etc.

Babak


javamonkey79 wrote
> 
> Claus Ibsen-2 wrote
*
>> Otherwise the FTP client may have a logging level / name you can set
>> to see what it can log on the client side about the activity.
*
>> On Tue, Feb 18, 2014 at 11:00 PM, javamonkey79 <

>> javamonkey79@

>> > wrote:
>>> In the FTP component docs, it shows the FTP commands from the stepwise
>>> flag:
>>>
>>> TYPE A
>>> 200 Type set to A
>>> PWD
>>> 257 "/" is current directory.
>>> CWD one
>>> 250 CWD successful. "/one" is current directory.
>>> CWD two
>>> 250 CWD successful. "/one/two" is current directory.
>>> SYST
>>> 215 UNIX emulated by FileZilla
>>> PORT 127,0,0,1,17,94
>>> 200 Port command successful
>>> LIST
>>> 150 Opening data channel for directory list.
>>> 226 Transfer OK
>>> ...
>>>
>>> How do you get these FTP commands to show up? Is it just setting to
>>> trace\all logging, or is there another way?
>>>
>>> Thanks.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://camel.465427.n5.nabble.com/show-ftp-commands-tp5747517.html
>>> Sent from the Camel - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
>> -- 
>> Claus Ibsen
>> -----------------
>> Red Hat, Inc.
>> Email: 

>> cibsen@

>> Twitter: davsclaus
>> Blog: http://davsclaus.com
>> Author of Camel in Action: http://www.manning.com/ibsen
>> Make your Camel applications look hawt, try: http://hawt.io
> Does anyone know what "logging level / name" it might be?





--
View this message in context: 
http://camel.465427.n5.nabble.com/show-ftp-commands-tp5747517p5747589.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to