Initial commit
This commit is contained in:
26
structs.go
Normal file
26
structs.go
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user