10
pkg/slogd/jsonHandler.go
Normal file
10
pkg/slogd/jsonHandler.go
Normal file
@ -0,0 +1,10 @@
|
||||
package slogd
|
||||
|
||||
import (
|
||||
"io"
|
||||
"log/slog"
|
||||
)
|
||||
|
||||
func RegisterJSONHandler(w io.Writer, activate bool) {
|
||||
RegisterSink(HandlerJSON, slog.NewJSONHandler(w, HandlerOptions()), activate)
|
||||
}
|
Reference in New Issue
Block a user