a pluggable logging interface and more debug logging.
This commit is contained in:
14
lib.go
Normal file
14
lib.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package nostr
|
||||
|
||||
import (
|
||||
"io/ioutil"
|
||||
"log"
|
||||
)
|
||||
|
||||
var (
|
||||
// call SetOutput on InfoLogger to enable info logging
|
||||
InfoLogger = log.New(ioutil.Discard, "[go-nostr][info] ", log.LstdFlags)
|
||||
|
||||
// call SetOutput on DebugLogger to enable debug logging
|
||||
DebugLogger = log.New(ioutil.Discard, "[go-nostr][debug] ", log.LstdFlags)
|
||||
)
|
||||
Reference in New Issue
Block a user