mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-11-18 18:16:50 +01:00
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.
15 lines
305 B
Go
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)
|
|
)
|