-
Notifications
You must be signed in to change notification settings - Fork 125
Add ability to capture path of log file opened, via FileLifecycleHooks #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ability to capture path of log file opened, via FileLifecycleHooks #189
Conversation
Looks good to me; which scenario are we aiming to hit with this, in particular? |
@nblumhardt @cocowalla I just did what I should have done from the start and opened an issue to discuss and add more context. |
1e7331b
to
f32a809
Compare
f32a809
to
4c8c3d4
Compare
|
Is there a roadmap on when this gets released? We are waiting for this. Our use case is having encryption applied on the file. When appending, we need to read the initialization vector from the header. Since neither the underlying stream nor the file name is offered through Another problem that we have, is that the underlying stream is opened with |
Hi @Falco20019 - have you tried the |
@nblumhardt Yes, I tried it with that and that‘s when I saw the problems I documented in #199. So sadly this was only part of the solution since the underlying stream is not allowing write permission as it already opened the file with |
Adds an overload to
FileLifecycleHooks
that includes the path to the log file that has been opened.By default, it calls the current
OnFileOpened(Stream, Encoding)
to maintain compatibility with existing hooks.We can consider marking the current
OnFileOpened(Stream, Encoding)
asObsolete
on this or on a future pull-request depending on the next milestone/release.Resolves #191