You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/rkennedy/nblog

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/rkennedy/nblog

v0.0.0-20240911141031-3abbf97003f0
Source
Go
Version published
Created
Source

nblog

Go Reference

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")
}

FAQs

Package last updated on 11 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts