serilog-settings-configuration
serilog-settings-configuration copied to clipboard
Add 'FileLifecycleHooks` in config
Path for log files is in my config and I want to print that path in the console.
I understand it is possible to get the path by deriving from FileLifecycleHooks
and overriding OnFileOpened
.
Now I need to use my FileLifecycleHooks
file in the configuration or reference it somehow without overriding the config. I prefer to specify in the config if possible. How do I do this?
Thanks