fix(Logger): make buffer size user customizable

This commit is contained in:
2024-10-26 15:25:14 +02:00
parent 08d6e6c18e
commit e8a5be21d3
3 changed files with 6 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ import (
func (lgr *FileLoggerImpl) init() {
lgr.filepath = "./log"
lgr.messages = make(chan string, logbuffersize)
lgr.messages = make(chan string, Logbuffersize)
envfp, envexist := os.LookupEnv("LOGFILE_GO_LOGGER")
if envexist {
if len(envfp) > 0 {