inital commit

This commit is contained in:
2024-09-12 22:16:26 +02:00
commit 2c75b20349
14 changed files with 653 additions and 0 deletions

21
logger/types.go Normal file
View File

@@ -0,0 +1,21 @@
package logger
import (
"os"
"sync"
)
// A logger without logging functionality
type NullLoggerimpl struct{}
// A logger that logs to sdtout
type ConsoleLoggerimpl struct {
messages chan string
}
type FileLoggerimpl struct {
messages chan string
mutex *sync.Mutex
logFile *os.File
filepath string
}