mirror of
https://codeberg.org/scip/yadu.git
synced 2025-12-16 12:11:00 +01:00
use removeTime
This commit is contained in:
@@ -33,8 +33,8 @@ func removeTime(_ []string, a slog.Attr) slog.Attr {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
opts := &yadu.Options{
|
opts := &yadu.Options{
|
||||||
Level: slog.LevelDebug,
|
Level: slog.LevelDebug,
|
||||||
//ReplaceAttr: removeTime,
|
ReplaceAttr: removeTime,
|
||||||
}
|
}
|
||||||
|
|
||||||
logger := slog.New(yadu.NewHandler(os.Stdout, opts))
|
logger := slog.New(yadu.NewHandler(os.Stdout, opts))
|
||||||
|
|||||||
Reference in New Issue
Block a user