-
Notifications
You must be signed in to change notification settings - Fork 26
Docs: Improve Logger documentations typed logger #496
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
Comments
A couple of observations using the log method on the Logger instance
Not sure if these are something that could be included as part of the documentation or am f I am missing something here? @amirkaws |
Hi @rahulpnath thanks for raising the issue and thanks for the youtube video as well 😄 really cool. So at the moment the way you add "addiitonal keys" is by calling the methods The reason behind that approach was for the user experience to be the same across all Powertools runtimes. Any input or feedback will be greatly appreciated, we don't have anything public yet, so if you have any ideas would love to hear them |
Discussion: #570 |
@rahulpnath and @amirkaws thanks for opening the issue and your comments This is now supported in version 2 of Logger You can now use ILogger or LoggerFactory to create a Powertools Logger Documentation You can now also use Message templates to log structured logs of your objects Documenation
and to get the correct message format override the ToString of the Person class public override string ToString()
{
return $""{Name} and is {Age} years old"";
} this will result in:
Using
|
What were you searching in the docs?
I am looking for the documentation to show me how to use typed logger, and interface based logger rather than Logger. static methods.
Is this related to an existing documentation section?
No response
How can we improve?
Got a suggestion in mind?
No response
Acknowledgment
The text was updated successfully, but these errors were encountered: