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

希望 记录调用栈 功能能够区分日志级别 #11

Open
ghost opened this issue Jul 5, 2016 · 2 comments
Open

希望 记录调用栈 功能能够区分日志级别 #11

ghost opened this issue Jul 5, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Jul 5, 2016

感觉 info 之类的日志一般不需要记录调用栈,错误之类的才需要记录调用栈。

希望增加 MaxLevel 参数来控制什么级别开启调用栈。

@qiangxue
Copy link
Member

qiangxue commented Jul 5, 2016

你可以设置Logger.Formatter,使用自己写的Formatter来根据level选择性地显示callstack。

@ghost
Copy link
Author

ghost commented Jul 5, 2016

每次都写个函数麻烦啊,我做个补丁如何?

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

1 participant