How to change remote address dynamically from code? #200
-
Hello, Serilog.ILogger log = new LoggerConfiguration()
.MinimumLevel.Verbose()
.WriteTo.Udp("localhost", 7071, AddressFamily.InterNetwork)
.CreateLogger(); I am not using Serilog.Settings.Configuration as my use-case doesn't work well with external files. Please what would be preferred approach for doing so? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @trandzik! Are you using the Singleton instance |
Beta Was this translation helpful? Give feedback.
Hi @trandzik!
Are you using the Singleton instance
Log.Logger
? If so, I think you can replace it with a new logger once you detect that you need to change the address.