mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-10-10 21:04:10 +02:00
improved logging thing with the "debug" build tag.
This commit is contained in:
14
log.go
Normal file
14
log.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package nostr
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
)
|
||||
|
||||
var (
|
||||
// call SetOutput on InfoLogger to enable info logging
|
||||
InfoLogger = log.New(os.Stderr, "[go-nostr][info] ", log.LstdFlags)
|
||||
|
||||
// call SetOutput on DebugLogger to enable debug logging
|
||||
DebugLogger = log.New(os.Stderr, "[go-nostr][debug] ", log.LstdFlags)
|
||||
)
|
Reference in New Issue
Block a user