1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-03-23 07:06:18 +02:00

18 lines
296 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
2024-09-29 19:23:19 +03:00
Data types.JSONMap[any]
2023-11-26 13:33:17 +02:00
Message string
Level slog.Level
}