1 // Copyright (c) 2013-2016 The btcsuite developers
2 // Use of this source code is governed by an ISC
3 // license that can be found in the LICENSE file.
8 "github.com/btcsuite/btclog"
11 // log is a logger that is initialized with no output filters. This
12 // means the package will not perform any logging by default until the caller
16 // The default amount of logging is none.
21 // DisableLog disables all library log output. Logging output is disabled
22 // by default until either UseLogger or SetLogWriter are called.
27 // UseLogger uses a specified Logger to output package logging info.
28 // This should be used in preference to SetLogWriter if the caller is also
30 func UseLogger(logger btclog.Logger) {
34 // pickNoun returns the singular or plural form of a noun depending
36 func pickNoun(n int, singular, plural string) string {