pocketbase/tools/logger/log.go

18 lines
296 B
Go
Raw Normal View History

2023-11-26 19:33:17 +08: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
2024-09-30 00:23:19 +08:00
Data types.JSONMap[any]
2023-11-26 19:33:17 +08:00
Message string
Level slog.Level
}