package main
import (
"fmt"
"log/slog"
"github.com/emicklei/htmlslog"
)
func main() {
handler := htmlslog.New(os.Stdout, htmlslog.Options{Level: slog.LevelInfo, Title: "Test"})
mylog := slog.New(handler)
mylog.Info("Hello, world!")
handler.Close()
}
-
Notifications
You must be signed in to change notification settings - Fork 0
emicklei/htmlslog
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Go slog.Handler that produces HTML