This question gets raised every so often, and was an important requirement
for an FTP server we needed.  So we addressed the issue.

We have written a general purpose logging ftplet which allows logging of a
variety of information based on commands, connection, or disconnection
events.  Based roughly on the ProFTPD LogFormat configuration, it supports
most of the parameters that LogFormat does, several that are required to
duplicate xferlog compatible logging, plus several that only make sense in a
java or mina/ftpserver environment.  There is a base abstract class that
does most of the work, and several simple subclasses used to direct the
lines to a specific output (such as a file).

It is currently undergoing internal code review, and once this is done we
intend to donate it to the Apache project for inclusion with mina/ftpserver.
 Hopefully this will be within the next week or so and after we have figured
out the correct procedure to do so.

I can answer any questions about the class, if desired.

Thanks for a great project,
Allen

On Tue, Apr 12, 2011 at 8:00 AM, Niklas Gustavsson <[email protected]>wrote:

> On Mon, Apr 11, 2011 at 5:02 AM, Jeff Fisher <[email protected]>
> wrote:
> > I'm sorry if I missed this somewhere but how can I set up a transfer log
> > that includes the size of the files transferred?
>
> FtpServer does not currently support this. That said, it should be
> fairly easy to add support for providing this information (including
> stuff like the local file path) to our message translation process.
> Feel free to add a JIRA issue requesting this.
>
> /niklas
>

Reply via email to