|
Can I configure Ftp/Sftp tracing via application configuration file, w/o modifying code and recompiling application? Of course, I can write my own LogWriter, that uses a TraceSource, and setup it for any Ftp/Sftp object I've created; but, in my view, this is common and useful scenario. |
|
Hello, adding a new LogWriter which will log to TraceSource looks to be a good idea. We will add it to one of future versions. Thanks for the suggestion. Adding an ability to turn on logging by just updating config is tempting too. However it may have some undesirable side effect:
Both concerns can be addressed if programmer is required to explicitly state that logger configuration should be read from the config file. Something like this:
or by adding an attribute to assembly - similar to Log4Net XmlConfigurator attribute:
What do you think? Would it be ok for you? |