mirror of
https://github.com/pocketbase/pocketbase.git
synced 2025-01-09 10:07:17 +02:00
18 lines
291 B
Go
18 lines
291 B
Go
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
|
|
}
|