finish logs page
This commit is contained in:
parent
0d8d324ac6
commit
d39d52d95d
22 changed files with 564 additions and 250 deletions
12
main.go
12
main.go
|
|
@ -1,21 +1,9 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
|
||||
"github.com/kujtimiihoxha/termai/cmd"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// Create a log file and make that the log output DEBUG
|
||||
// TODO: remove this on release
|
||||
logfile, err := os.OpenFile("debug.log", os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o666)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
log.SetOutput(logfile)
|
||||
|
||||
cmd.Execute()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue