Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.3k views
in .NET FTP by (161k points)
A user writes:
I have modified the demo and added the following:

Logger.AddAppender(New FileAppender("c:\ftplog.txt"))

When the program runs I am getting a log file created but it is empty. Do I need to change the log.info("some text") in any way to tell it to write this line to the file? Section 4.4 in the Developers Guide does not cover this in great detail. It also talks about multiple FileAppenders. How does one direct certain entries to one as opposed to the other.


The log file hasn't been flushed, most likely. You can call Logger.Shutdown() at the end of the program to ensure this occurs.

We will make a modification to our logging code to ensure flushing occurs after every call.

Please log in or register to answer this question.

Categories

...