log/structs.go
2025-02-23 09:56:16 -06:00

27 lines
422 B
Go

package log
import (
"context"
"log/slog"
)
// primary struct
type Log struct {
Ctx context.Context // context
Log *slog.Logger // slog logger
SLogLevel slog.LevelVar // level
}
// field customization
type Customization struct {
Application CustomizationValue
Format string
TimeStamp struct {
Key string
Format string
}
Type CustomizationValue
}
type CustomizationValue string