Skip to content

Commit

Permalink
feat: logger pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmesquitta committed May 31, 2024
1 parent d6c65d5 commit cb08665
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/logger/logger.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package logger

import (
"github.com/danielmesquitta/openfinance/config"
"github.com/danielmesquitta/openfinance/internal/config"
"go.uber.org/zap"
)

Expand All @@ -13,6 +13,7 @@ type Logger struct {
func NewLogger(env *config.Env) *Logger {
if env.Environment == config.DevelopmentEnv {
return &Logger{
env: env,
log: zap.Must(zap.NewDevelopment()).Sugar(),
}
}
Expand Down

0 comments on commit cb08665

Please sign in to comment.