Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CallerMemerName #193

Open
stepagrus opened this issue Dec 4, 2024 · 3 comments
Open

CallerMemerName #193

stepagrus opened this issue Dec 4, 2024 · 3 comments

Comments

@stepagrus
Copy link

Hello!

Do you have any plans to implement [CallerMemberName] in the logger formatter?

And if so, what solution do you want to use?

The standard interface Microsoft.Extensions.Logging.iLogger does not have a method with an argument that takes a [CallerMemberName].

@neuecc
Copy link
Member

neuecc commented Dec 5, 2024

ZLog*** methods already have CallerMemberName.

@stepagrus
Copy link
Author

@neuecc Did I understand you correctly that using the Microsoft.Extensions.Logging.ILogger interface I will not be able to log [CallerMemberName]?

@neuecc
Copy link
Member

neuecc commented Feb 21, 2025

Hmmm, ZLog is an extension method to ILogger, so to say it is and not to say it isn't.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants