btcd/go.mod
Olaoluwa Osuntokun dec3e41354 deps+log: upgrade to btclog/v2 with dual logger support
This commit upgrades the btclog dependency from v0 to support both v1 and
v2 loggers simultaneously. The dual logger pattern, inspired by LND's
implementation, allows us to incrementally adopt btclog/v2's structured
logging capabilities in the mempool subsystem while maintaining backward
compatibility with the rest of the codebase.

The key changes enable structured logging (DebugS, InfoS, WarnS, etc.) with
key-value pair attributes for rich operational context, particularly valuable
for security monitoring and debugging in the mempool implementation.

We create separate backends: backendLog using btclogv1 for existing
subsystems, and backendLogV2 using btclog v2 for the mempool. The
setLogLevel function now handles both logger types via type switching,
ensuring log level changes work across both versions.
2025-10-27 16:10:29 -07:00

69 lines
1.6 KiB
Modula-2

module github.com/btcsuite/btcd
require (
github.com/btcsuite/btcd/btcec/v2 v2.3.5
github.com/btcsuite/btcd/btcutil v1.1.5
github.com/btcsuite/btcd/chaincfg/chainhash v1.1.0
github.com/btcsuite/btcd/v2transport v1.0.1
github.com/btcsuite/btclog v0.0.0-20241003133417-09c4e92e319c
github.com/btcsuite/go-socks v0.0.0-20170105172521-4720035b7bfd
github.com/btcsuite/websocket v0.0.0-20150119174127-31079b680792
github.com/btcsuite/winsvc v1.0.0
github.com/davecgh/go-spew v1.1.1
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.0.1
github.com/decred/dcrd/lru v1.0.0
github.com/gorilla/websocket v1.5.0
github.com/jessevdk/go-flags v1.4.0
github.com/jrick/logrotate v1.0.0
github.com/stretchr/testify v1.8.4
github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
golang.org/x/crypto v0.25.0
golang.org/x/sys v0.22.0
pgregory.net/rapid v1.2.0
)
require (
github.com/aead/siphash v1.0.1 // indirect
github.com/btcsuite/btclog/v2 v2.0.0 // indirect
github.com/decred/dcrd/crypto/blake256 v1.0.0 // indirect
github.com/golang/snappy v0.0.4 // indirect
github.com/kkdai/bstream v0.0.0-20161212061736-f391b8402d23 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/objx v0.5.0 // indirect
golang.org/x/net v0.24.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
// The retract statements below fixes an accidental push of the tags of a btcd
// fork.
retract (
v0.18.1
v0.18.0
v0.17.1
v0.17.0
v0.16.5
v0.16.4
v0.16.3
v0.16.2
v0.16.1
v0.16.0
v0.15.2
v0.15.1
v0.15.0
v0.14.7
v0.14.6
v0.14.6
v0.14.5
v0.14.4
v0.14.3
v0.14.2
v0.14.1
v0.14.0
v0.13.0-beta2
v0.13.0-beta
)
go 1.23.2