Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.9k views
in FAQ: edtFTPnet/PRO by (162k points)
closed by
How can I limit the size of log files?
closed with the note: Answered

1 Answer

0 votes
by (20.4k points)
 
Best answer

Use the RollingFileAppender:

using EnterpriseDT.Util.Debug;

Logger.ClearAppenders();
Logger.AddAppender(new RollingFileAppender("myfile.log", 5000000, 10));

That gives a max size of 5 MB with 10 log files.

...