plugeth/core/state
jwasinger 28e7371701
all: replace log15 with slog (#28187)
This PR replaces Geth's logger package (a fork of [log15](https://github.com/inconshreveable/log15)) with an implementation using slog, a logging library included as part of the Go standard library as of Go1.21.

Main changes are as follows:
* removes any log handlers that were unused in the Geth codebase.
* Json, logfmt, and terminal formatters are now slog handlers.
* Verbosity level constants are changed to match slog constant values.  Internal translation is done to make this opaque to the user and backwards compatible with existing `--verbosity` and `--vmodule` options.
* `--log.backtraceat` and `--log.debug` are removed.

The external-facing API is largely the same as the existing Geth logger.  Logger method signatures remain unchanged.

A small semantic difference is that a `Handler` can only be set once per `Logger` and not changed dynamically.  This just means that a new logger must be instantiated every time the handler of the root logger is changed.

----
For users of the `go-ethereum/log` module. If you were using this module for your own project, you will need to change the initialization. If you previously did 
```golang
log.Root().SetHandler(log.LvlFilterHandler(log.LvlInfo, log.StreamHandler(os.Stderr, log.TerminalFormat(true))))
```
You now instead need to do 
```golang
log.SetDefault(log.NewLogger(log.NewTerminalHandlerWithLevel(os.Stderr, log.LevelInfo, true)))
```
See more about reasoning here: https://github.com/ethereum/go-ethereum/issues/28558#issuecomment-1820606613
2023-11-29 08:33:50 +01:00
..
pruner core/state/pruner: track number of skipped items during state pruning (#28368) 2023-10-23 13:24:32 +08:00
snapshot all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
access_list.go all: implement EIP-2929 (gas cost increases for state access opcodes) + yolo-v2 (#21509) 2020-10-23 08:26:57 +02:00
database.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
dump.go cmd/evm, core/state: fix post-exec dump of state (statetests, blockchaintests) (#28504) 2023-11-28 13:54:17 +01:00
iterator_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
iterator.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
journal.go core, trie: track state change set with account address (#27815) 2023-07-31 15:07:51 +03:00
metrics.go core/state: value diff tracking in StateDB (#27349) 2023-07-11 15:43:23 +02:00
state_object_test.go build: use golangci-lint (#20295) 2019-11-18 10:49:17 +02:00
state_object.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
state_test.go cmd/evm, core/state: fix post-exec dump of state (statetests, blockchaintests) (#28504) 2023-11-28 13:54:17 +01:00
statedb_fuzz_test.go core, trie: cleanup trie database (#28062) 2023-09-07 21:17:14 +08:00
statedb_test.go core, trie, rpc: speed up tests (#28461) 2023-11-21 12:19:28 +01:00
statedb.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00
sync_test.go all: activate pbss as experimental feature (#26274) 2023-08-10 22:21:36 +03:00
sync.go all: use rlp.DecodeBytes instead of rlp.Decode where possible (#27994) 2023-08-24 11:47:42 +03:00
transient_storage.go all: implement EIP-1153 transient storage (#26003) 2022-11-16 10:18:52 +01:00
trie_prefetcher_test.go all: new empty trie with types.EmptyRootHash instead of null (#27230) 2023-05-11 10:19:42 +03:00
trie_prefetcher.go cmd, core, trie: verkle-capable geth init (#28270) 2023-11-14 13:09:40 +01:00