Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
–1 vote
145 views
in General by (140 points)
Hello,

I know how i can enable logging to a file but is there a way for log file to Roll over next day as a new file? If yes, can you point me to an example.

E.g. edt.log, edt20210927, edt20210926

Thanks,

Abhishek.

1 Answer

0 votes
by (51.1k points)

Yes, you can use Logger.AddAppender to add an instance of RollingFileAppender, e.g.

Logger.AddAppender(new RollingFileAppender("ftp.log", 5000000, 20));

Categories

...