-
-
Notifications
You must be signed in to change notification settings - Fork 82
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
Consider re-adding parameterized logging methods #835
Comments
Hmm, structured logging needs named parameters though, not numbered ones. So maybe, support needs to be added for that. |
Right, I decided to remove log methods with Also, nowadays, as you mentioned, structured logging became very popular. And it is not supported by Atata at the moment. But having old method signatures like I also would like to have a support of structured logging in Atata, as well as an integration with Microsoft.Extensions.Logging. But it requires a lot of effort to rework existing functionality and add support of the new. On the other hand, I don't see a huge benefit from structured logging in terms of Atata, like in ASP.NET application, where you may have hundreds of thousands of log entries. Using Atata in testing you usually have a separate log file (or console output) per test, which is just a couple of screens high. Also, I hope that |
I see, thanks for explaining, this makes sense. We don't need these methods, then. |
E.g.
ILogManager.Info(string message, params object[] args)
is deprecated and it's recommended to useInfo(string message)
with string interpolation instead.However, generally in .NET, it's recommended to follow structured logging patterns and utilize logging scopes. While Atata doesn't provide such logging out of the box,
ILogManager
makes it possible to substitute the logging implementation with one that does. That way, one can send structured log entries to other log engines, or even remote telemetry services like Azure Application Insights. There, structured logging matters a lot for filtering.So, please re-add the removed overloads accepting parameters.
The text was updated successfully, but these errors were encountered: