Skip to content
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

Remove dependency of Serilog #74

Closed
tkouba opened this issue Feb 26, 2024 · 7 comments
Closed

Remove dependency of Serilog #74

tkouba opened this issue Feb 26, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@tkouba
Copy link

tkouba commented Feb 26, 2024

Please remove dependency of Serilog.

@SeppPenner SeppPenner self-assigned this Feb 26, 2024
@SeppPenner SeppPenner added enhancement New feature or request invalid This doesn't seem right labels Feb 26, 2024
@SeppPenner
Copy link
Owner

Why should I? It's honestly the best logging framework I have worked with until now...

@tkouba
Copy link
Author

tkouba commented Feb 26, 2024

Because there are a lot of logging frameworks. Dependency of any logging framework from general use library is not a good idea. This dependency may violate some rules for application and library cannot be used.

@SeppPenner SeppPenner removed the invalid This doesn't seem right label Feb 29, 2024
@SeppPenner
Copy link
Owner

Because there are a lot of logging frameworks. Dependency of any logging framework from general use library is not a good idea. This dependency may violate some rules for application and library cannot be used.

I have thought a bit about this and I agree. I will check this and see what I can do.

@shouidar
Copy link
Contributor

shouidar commented Mar 4, 2024

Although I agree that depending on SeriLog is overkill, I think the library should allow for some optional logging mechanism. This can be achieved easily by depending only on the Microsoft.Extensions.Logging.Abstractions and optionally the default ILogger or any compatible logging framework (including SeriLog if desired) or null if logging is not required. The library would prefix all local ILogger calls with the null check operator to handle the null logger case.
See "Loggin in a .Net Core library" for more details.

@SeppPenner
Copy link
Owner

The question is if we really need it. There was only debugging logs in the code. I mean, I can add it if desired.

@malavvvakharia
Copy link

@SeppPenner , On the NuGet side 1.3.4 is not available. So do 1.3.3 and 1.3.4 have the same code?

image

@SeppPenner
Copy link
Owner

@malavvvakharia I guess, I forgot to push it. Should be there soon 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants