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
@@ -7,8 +7,8 @@ import (
"context"
"errors"
"fmt"
"log/slog"
"ruben/inventory2/internal/consts"
"ruben/inventory2/internal/logging"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgxpool"
@@ -16,7 +16,7 @@ import (
type (
Store struct {
log *slog.Logger
log *logging.Logger
db *pgxpool.Pool
}
@@ -61,7 +61,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,