cleanup file structure, dockerize app

This commit is contained in:
KS Jannette
2026-05-19 03:37:56 -04:00
parent 4042ba87f5
commit 8cfde57cab
18 changed files with 262 additions and 98 deletions

View File

@@ -1,23 +1,13 @@
package logger
import (
"log"
"os"
"go.uber.org/zap"
"go.uber.go/zap/zapcore"
"log"
"os"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
type Logger interface {
Debug(msg string, fields ...zap.Field)
Info(msg string, fields ...zap.Field)
Warn(msg string, fields ...zap.Field)
Error(msg string, fields ...zap.Field)
With(fields ...zap.Field) *zap.Logger
}
// Option is a function to provide the Logger creation with extra initialisation options.
type Option func(*zap.Config)
// init initializes zap's global loggers (i.e. zap.L() and zap.S()).
// Log level is retrieved from environment variable LOG_LEVEL, defaulting to "info" otherwise.
// To activate this facility, add a blank import to this package.