ozansz / gls

Minimal file manager with terminal UI #Go

Home Page:https://sazak.io/gls-file-manager-on-terminal-with-go/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Littering with `gls.log`

yigitsever opened this issue · comments

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?

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

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