chainnfts: export logger for use by concrete implementations

This commit is contained in:
Olaoluwa Osuntokun 2016-06-20 20:47:43 -07:00
parent 889b43a06b
commit 3f0173f19a
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

@ -10,7 +10,7 @@ import (
// log is a logger that is initialized with no output filters. This
// means the package will not perform any logging by default until the caller
// requests it.
var log btclog.Logger
var Log btclog.Logger
// The default amount of logging is none.
func init() {
@ -20,14 +20,14 @@ func init() {
// DisableLog disables all library log output. Logging output is disabled
// by default until either UseLogger or SetLogWriter are called.
func DisableLog() {
log = btclog.Disabled
Log = btclog.Disabled
}
// UseLogger uses a specified Logger to output package logging info.
// This should be used in preference to SetLogWriter if the caller is also
// using btclog.
func UseLogger(logger btclog.Logger) {
log = logger
Log = logger
}
// SetLogWriter uses a specified io.Writer to output package logging info.