decred.org/dcrwallet/v3@v3.1.0/internal/vsp/log.go (about) 1 // Copyright (c) 2016-2018 The Decred developers 2 // Use of this source code is governed by an ISC 3 // license that can be found in the LICENSE file. 4 5 package vsp 6 7 import "github.com/decred/slog" 8 9 // log is a logger that is initialized with no output filters. This 10 // means the package will not perform any logging by default until the caller 11 // requests it. 12 var log = slog.Disabled 13 14 // UseLogger uses a specified Logger to output package logging info. 15 // This should be used in preference to SetLogWriter if the caller is also 16 // using slog. 17 func UseLogger(logger slog.Logger) { 18 log = logger 19 }