repositorypackage
0.0.0-20240911141031-3abbf97003f0
Repository: https://github.com/rkennedy/nblog.git
Documentation: pkg.go.dev
# README
nblog
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.
Usage
go get github.com/rkennedy/nblog
package main
import (
"log/slog"
"os"
"github.com/rkennedy/nblog"
)
func main() {
logger := slog.New(nblog.NewHandler(os.Stdout))
logger.Info("message")
}