mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 18:00:11 +01:00
a6965d493f
The btclog package has been changed to defining its own logging interface (rather than seelog's) and provides a default implementation for callers to use. There are two primary advantages to the new logger implementation. First, all log messages are created before the call returns. Compared to seelog, this prevents data races when mutable variables are logged. Second, the new logger does not implement any kind of artifical rate limiting (what seelog refers to as "adaptive logging"). Log messages are outputted as soon as possible and the application will appear to perform much better when watching standard output. Because log rotation is not a feature of the btclog logging implementation, it is handled by the main package by importing a file rotation package that provides an io.Reader interface for creating output to a rotating file output. The rotator has been configured with the same defaults that btcd previously used in the seelog config (10MB file limits with maximum of 3 rolls) but now compresses newly created roll files. Due to the high compressibility of log text, the compressed files typically reduce to around 15-30% of the original 10MB file.
60 lines
1.6 KiB
YAML
60 lines
1.6 KiB
YAML
hash: 9e111ebb6989c8b23db0ef5c0523e8dde1ccaa964fa7a42faccbb7a6a60b2860
|
|
updated: 2017-06-19T16:45:22.5258215-04:00
|
|
imports:
|
|
- name: github.com/btcsuite/btclog
|
|
version: 96c2a91a67da03552a5e6554fe3ccbfbc7f860be
|
|
- name: github.com/btcsuite/btcrpcclient
|
|
version: 45b9cb481d2aead4e80aab32d7aa86db386430ab
|
|
- name: github.com/btcsuite/btcutil
|
|
version: dcd4997b0664bcfd6ef48e4ae9da8396e08b1cd9
|
|
subpackages:
|
|
- base58
|
|
- bloom
|
|
- hdkeychain
|
|
- name: github.com/btcsuite/go-socks
|
|
version: 4720035b7bfd2a9bb130b1c184f8bbe41b6f0d0f
|
|
subpackages:
|
|
- socks
|
|
- name: github.com/btcsuite/goleveldb
|
|
version: 7834afc9e8cd15233b6c3d97e12674a31ca24602
|
|
subpackages:
|
|
- leveldb
|
|
- leveldb/cache
|
|
- leveldb/comparer
|
|
- leveldb/errors
|
|
- leveldb/filter
|
|
- leveldb/iterator
|
|
- leveldb/journal
|
|
- leveldb/memdb
|
|
- leveldb/opt
|
|
- leveldb/storage
|
|
- leveldb/table
|
|
- leveldb/util
|
|
- name: github.com/btcsuite/snappy-go
|
|
version: 0bdef8d067237991ddaa1bb6072a740bc40601ba
|
|
- name: github.com/btcsuite/websocket
|
|
version: 31079b6807923eb23992c421b114992b95131b55
|
|
- name: github.com/btcsuite/winsvc
|
|
version: f8fb11f83f7e860e3769a08e6811d1b399a43722
|
|
subpackages:
|
|
- eventlog
|
|
- mgr
|
|
- registry
|
|
- svc
|
|
- winapi
|
|
- name: github.com/davecgh/go-spew
|
|
version: 346938d642f2ec3594ed81d874461961cd0faa76
|
|
subpackages:
|
|
- spew
|
|
- name: github.com/jessevdk/go-flags
|
|
version: 1679536dcc895411a9f5848d9a0250be7856448c
|
|
- name: github.com/jrick/logrotate
|
|
version: 4ed05ed86ef17d10ff99cce77481e0fcf6f2c7b0
|
|
subpackages:
|
|
- rotator
|
|
- name: golang.org/x/crypto
|
|
version: 122d919ec1efcfb58483215da23f815853e24b81
|
|
subpackages:
|
|
- ripemd160
|
|
testImports: []
|