1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-01-10 00:43:36 +02:00
pocketbase/tools/logger/log.go

18 lines
291 B
Go
Raw Normal View History

2023-11-26 13:33:17 +02:00
package logger
import (
"log/slog"
"time"
"github.com/pocketbase/pocketbase/tools/types"
)
// Log is similar to [slog.Record] bit contains the log attributes as
// preformatted JSON map.
type Log struct {
Time time.Time
Message string
Level slog.Level
Data types.JsonMap
}