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

Littering with gls.log #19

Open
yigitsever opened this issue Oct 8, 2022 · 2 comments
Open

Littering with gls.log #19

yigitsever opened this issue Oct 8, 2022 · 2 comments

Comments

@yigitsever
Copy link

gls leaves behind a gls.log file when run

$ gls -path .
$ file gls.log
gls.log: ASCII text

Maybe the creation of this file should be tied to the -debug option?

@ozansz
Copy link
Owner

ozansz commented Oct 9, 2022

It’s actually where the gls logs are written and it’s created inside cmd/gls.go, and used in log/core.go. It seems I forgot to document it

@ozansz
Copy link
Owner

ozansz commented Oct 9, 2022

Also, log.SetDebug(1) is used inside cmd/gls.go if the -debug is set. We can keep the logging logic, but we can also make the log file a hidden file (such as .gls.log) and document it

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