diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-10-24 16:39:14 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-10-24 16:39:14 +0300 |
| commit | 688668f6d34d4d962247bd5df60c3fca61185927 (patch) | |
| tree | 459a29a76bb3a8cd77cdeccf35d7c1689374d09d /cmd | |
| parent | 6f83f199f8311bf7782da59bc2e07df38073e65a (diff) | |
feat: worked on client
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/client/main.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/client/main.go b/cmd/client/main.go index a566cde..da73ae0 100644 --- a/cmd/client/main.go +++ b/cmd/client/main.go @@ -1,9 +1,20 @@ package main import ( + "log" + "os" + "github.com/kyren223/eko/internal/client" ) func main() { + logFile, err := os.OpenFile("client.log", os.O_APPEND|os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666) + if err != nil { + log.Fatalln(err) + } + defer logFile.Close() + log.SetOutput(logFile) + client.Run() + } |
