-
Notifications
You must be signed in to change notification settings - Fork 20
Description
As I'm currently implementing Proxy support, and as my app supports dynamic reconfiguration, I ended up testing just that and found some limitations:
Using the BlobStorageTarget, I can change the container name and blob name at runtime - set the new value on the corresponding BlobStorageTarget
and things are applied immediately because the Container
and BlobName
are re-evaulated on every write (and then CloudBlobService.AppendFromByteArrayAsync
initializes a new container when needed).
However, the same cannot be said about other config variables - all that is authentication would require a new call to CloudBlobService.Connect
.
With the proxy, it'll be the same since that depends on settings on a HttpClientHandler
and you can't modify these settings after having created the object.
So, just checking - when I'm calling LogFactory.ReconfigExistingLoggers()
this doesn't seem to be doing much in that respect (the old credentials keep being used)... is that by design, or is there a part that just wasn't implemented?
.. update... So I had a look at the FileTarget
- when you modify one of the configuration properties, e.g. change the ArchiveFileKind
, or ConcurrentWrites
they seem to call ResetFileAppenders - so I guess the concept of dynamic reconfiguration is something that can be implemented.