Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.6k views
in .NET FTP by (180 points)
I'm using edtFTPnet.

The Logging is working great. Currently, I get logging information from all levels into the log file.

How do I get logging information from all levels except Level.ALL into the log file? Here's my code snippet.

// Create Logging Object
Logger myLogger = Logger.GetLogger(typeof(ConsoleApp));
// Set up Logging Output to Console
Logger.AddAppender(new StandardOutputAppender());
// Set up Logging output to Log File
Logger.AddAppender(new FileAppender(String.Concat(_strLoggingFolder, @"\", DateTime.Now.ToString("yyyyMMddHHmmss"), ".log")));

Then what do I programmatically set?

The reason I ask for this is because Level.ALL reports all the FTPConnection events that are invoked and the procedures that are called by the events. This is rather meaningless in a log file and clutters up the log file.

3 Answers

0 votes
by (51.6k points)
Try DEBUG level.

- Hans (EnterpriseDT)
0 votes
by (180 points)
Interesting.

When using the ALL level, I get logging information from all levels, as expected.

When using the DEBUG level, I get logging information from all levels except Level.ALL, but... there seems to be a minor bug. Logging information from Level.ALL is still showing when the Closing and Closed events are invoked. Is this expected?
0 votes
by (162k points)
It shouldn't - we'll look into it. Thanks for pointing it out.

Categories

...