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

loglevel如何直接输出到终端,而不是打印到一个日志文件ossutil.log? #165

Open
abcfy2 opened this issue Dec 31, 2021 · 1 comment

Comments

@abcfy2
Copy link

abcfy2 commented Dec 31, 2021

如题。我期望直接添加--loglevel参数之后将这些内容直接输出到终端,而不是保存到一个日志文件再单独打开,请问有没有这个功能?

@qyvlik
Copy link

qyvlik commented Jul 19, 2022

ossutil 现在是将 ossutil.log 写死在代码里的,参考 https://github.com/aliyun/ossutil/blob/v1.7.13/lib/ossutil_log.go#L13-L31

如果用 dockerfile 封装 ossutil,可以参考 https://github.com/openresty/docker-openresty/blob/1.21.4.1rc3-1/alpine/Dockerfile#L154 ,把 /dev/stdout 链接到 ossutil.log

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