internal logging library

This commit is contained in:
2026-01-12 23:21:52 -07:00
parent ee2808f8a1
commit 851234d9fa
18 changed files with 349 additions and 159 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ import (
"context"
"encoding/json"
"fmt"
"log/slog"
"ruben/inventory2/internal/logging"
"time"
"github.com/jackc/pgx/v5"
@@ -14,7 +14,7 @@ import (
type (
Store struct {
log *slog.Logger
log *logging.Logger
db *pgxpool.Pool
}
@@ -27,7 +27,7 @@ type (
}
)
func NewStore(logger *slog.Logger, db *pgxpool.Pool) *Store {
func NewStore(logger *logging.Logger, db *pgxpool.Pool) *Store {
return &Store{
log: logger,
db: db,