27 lines
422 B
Go
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
|