-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
ProtocolLogger: Shouldn't the caller decide when to dispose the log stream #506
Comments
Not really, no, because the protocol logger disposes the stream when the .ctor takes a filename parameter. I can add a leaveOpen param for the Stream .ctor, though. How is that? |
That is perfect for the use case I described. |
@jstedfast Yeah this is exactly what I need too, but it isn't included in the latest nuget. 😢 When do you expect the next release to be? |
waiting on people to get back to me with info needed to fix some reported bugs. once I get that info and fix the bugs, I'll make a release. Hoping it comes soon. |
How did @axunonb use this new code if it hasn't been released ❓ |
He probably used the source code? |
Oh wow then he was more desperate than me 😃 I'll wait for the nuget! |
Jeff
Shouldn't the caller decide when the stream used for
ProtocolLogger
should be disposed?Currently, disposing
SmtpClient
also disposes the log stream.Simplified code:
Cheers,
Norbert
The text was updated successfully, but these errors were encountered: