File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change
1
+ package supplyverifier
2
+
3
+ import (
4
+ "github.com/btcsuite/btclog/v2"
5
+ )
6
+
7
+ // Subsystem defines the logging code for this subsystem.
8
+ const Subsystem = "SUPV"
9
+
10
+ // log is a logger that is initialized with no output filters. This
11
+ // means the package will not perform any logging by default until the caller
12
+ // requests it.
13
+ var log = btclog .Disabled
14
+
15
+ // DisableLog disables all library log output. Logging output is disabled
16
+ // by default until UseLogger is called.
17
+ func DisableLog () {
18
+ UseLogger (btclog .Disabled )
19
+ }
20
+
21
+ // UseLogger uses a specified Logger to output package logging info.
22
+ // This should be used in preference to SetLogWriter if the caller is also
23
+ // using btclog.
24
+ func UseLogger (logger btclog.Logger ) {
25
+ log = logger
26
+ }
You can’t perform that action at this time.
0 commit comments