serilog-settings-configuration icon indicating copy to clipboard operation
serilog-settings-configuration copied to clipboard

Add 'FileLifecycleHooks` in config

Open sam-wheat opened this issue 3 years ago • 0 comments

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

sam-wheat avatar Sep 29 '21 16:09 sam-wheat