The nblog package provides a handler for the slo package that formats records in the style of NetBackup "legacy" logs:
time [pid] <sev> caller: message
Additional attributes will appear JSON-style after the message.
go get github.com/rkennedy/nblog
package main
import (
"os"
"github.com/rkennedy/nblog"
"golang.org/x/exp/slog"
)
func main() {
logger := slog.New(nblog.NewHandler(os.Stdout))
logger.Info("message")
}