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

How to set the log file path? #119

Open
shaohk opened this issue Oct 31, 2017 · 3 comments
Open

How to set the log file path? #119

shaohk opened this issue Oct 31, 2017 · 3 comments

Comments

@shaohk
Copy link

shaohk commented Oct 31, 2017

I want to set the log file path,How to config it?

@yuan1238y
Copy link

You must open the log file first.

@shaohk
Copy link
Author

shaohk commented Nov 10, 2017

我能说中文吗? T.T,请问怎么打开日志文件呀?

@liuqing6767
Copy link

liuqing6767 commented Apr 3, 2018

f, _ := os.Create("/tmp/log.log")
backend := logging.NewLogBackend(f, "", 0)

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

3 participants