added lokiwriter log, server logger setting function and some zerolog logs
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc
2024-06-04 22:02:18 +02:00
parent 118eb29d17
commit cc663d88c8
3 changed files with 102 additions and 0 deletions

12
server/logger.go Normal file
View File

@ -0,0 +1,12 @@
package server
import (
"github.com/rs/zerolog"
)
var logger zerolog.Logger
// AddLogger sets the logger for the sublibrary
func AddLogger(l zerolog.Logger) {
logger = l
}