Versions in this module Expand all Collapse all v0 v0.0.2 Jun 3, 2023 v0.0.1 Jun 2, 2023 Changes in this version + var Logger *zap.Logger + func Debug(ctx context.Context, msg string) + func Error(ctx context.Context, msg string) + func Info(ctx context.Context, msg string) + func InitLog(config *Config) + func Warn(ctx context.Context, msg string) + type Config struct + Compress bool + Filename string + LastLog func(ctx context.Context) []zap.Field + Level zapcore.Level + RollingLogMaxAge int + RollingLogMaxBackups int + RollingLogMaxSize int + StdOut bool + func NewConfig(options ...Options) *Config + type Options func(config *Config) + func WithOutput(filename string) Options + func WithStdout() Options