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

打印错误信息时,如何设置不显示文件路径 #3

Open
zijiwork opened this issue Nov 9, 2019 · 4 comments
Open

打印错误信息时,如何设置不显示文件路径 #3

zijiwork opened this issue Nov 9, 2019 · 4 comments

Comments

@zijiwork
Copy link

zijiwork commented Nov 9, 2019

你好,请问打印错误信息时,如何设置不显示文件路径
2019-11-09 17:33:01 [EROR] [/Volumes/1/works/LuBan/install/utils.go:196] [globals] read file err is : open /root/.ssh/id_rsa: no such file or directory
2019-11-09 17:33:01 [EROR] [/Volumes/1/works/LuBan/install/utils.go:102] [1]Error create ssh s

@wonderivan
Copy link
Owner

当前有个方法是SetLogPathTrim, 可以指定省略前缀

@wonderivan
Copy link
Owner

新增方法SetDisableLogPath,不打印CodeLine

@derekcdq
Copy link

derekcdq commented Apr 9, 2021

新增方法SetDisableLogPath,不打印CodeLine

您好,请问我怎么找不到这个方法呢

@jz0ojiang
Copy link

新增方法SetDisableLogPath,不打印CodeLine

您好,在当前已发布版本里没有找到 SetDisableLogPath 这个方法

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

4 participants