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

添加功能,显示方法名称 #1

Open
miaomiao1992 opened this issue May 31, 2024 · 1 comment
Open

添加功能,显示方法名称 #1

miaomiao1992 opened this issue May 31, 2024 · 1 comment

Comments

@miaomiao1992
Copy link

我还想让日志显示代码所在的方法名称,能开发这个功能?我记得rust有个宏可以记录方法名称

@donnie4w
Copy link
Owner

这个可以后期考虑。不过暂时应该没办法直接调用内置的方法来获取调用的函数名。
如果项目有这个需求,可以写一个宏来实现捕获并打印函数名。

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

No branches or pull requests

2 participants