Files
go-nostr/log.go
DanConwayDev fa0db40822 set default InfoLogger DebugLogger to io.Discard
As applications want select for themselves what gets written to
stderr or stdout. Particularly when it gets passed through to parent
processes that aren't just writing it to a log file.
2025-07-23 16:13:10 -03:00

15 lines
305 B
Go

package nostr
import (
"log"
"io"
)
var (
// call SetOutput on InfoLogger to enable info logging
InfoLogger = log.New(io.Discard, "[go-nostr][info] ", log.LstdFlags)
// call SetOutput on DebugLogger to enable debug logging
DebugLogger = log.New(io.Discard, "[go-nostr][debug] ", log.LstdFlags)
)