Add slogd package back into repository
Signed-off-by: Jan Tytgat <jan.tytgat@corelayer.eu>
This commit is contained in:
10
slogd/jsonHandler.go
Normal file
10
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