mirror of
https://github.com/taigrr/bubbletea.git
synced 2026-04-02 11:09:17 -07:00
Fix adding prefix to file logs
This commit is contained in:
committed by
Christian Rocha
parent
ec67f23001
commit
f5fde56af0
@@ -23,5 +23,6 @@ func LogToFile(path string, prefix string) (*os.File, error) {
|
||||
return nil, err
|
||||
}
|
||||
log.SetOutput(f)
|
||||
log.SetPrefix(prefix)
|
||||
return f, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user