go-ethereum/log
Arran Schlosberg 02110d3f34
chore: logging (#151)
## Why this should be merged

Adds logging of `libevm` modification of default behaviour.

## How this works

1. Introduces `log.Lazy` functions to allow expensive logging operations
to be computed i.f.f. required by the logging level.
2. Adds `Info` logging for registration of types and `Debug` logging for
all else.
3. Only paths that change behaviour in a potentially unpredictable
manner are logged; of note, RLP / JSON encoding is _not_ considered
unpredictable given that registered extras are logged.
4. The minimal viable package, `set`, was necessary because we don't
want to depend on `avalanchego` and the `hashicorp/go-set` latest
version requires a later version of Go. #153 tracks a swap to the latter
when possible.

The `eth/tracers/internal/tracetest` test flaked at least twice
(unrelated to these changes) so I've marked it as such since it's not
worth a separate PR.

## How this was tested

New unit test on `log.Lazy` + `set` methods. Existing CI for the rest as
it's a refactor.
2025-02-24 16:53:21 +00:00
..
format.go log: remove lazy, remove unused interfaces, unexport methods (#28622) 2023-12-05 11:54:44 +01:00
format_test.go slog: faster and less memory-consumption (#28621) 2023-12-01 13:28:20 +01:00
handler.go log: remove lazy, remove unused interfaces, unexport methods (#28622) 2023-12-05 11:54:44 +01:00
handler_glog.go all: fix docstring names (#28923) 2024-02-07 21:10:49 +01:00
logger.go log: emit error level string as "error", not "eror" (#28774) 2024-01-08 15:27:33 +01:00
logger_test.go p2p, log, rpc: use errors.New to replace fmt.Errorf with no parameters (#29074) 2024-02-26 11:25:35 +02:00
root.go log: avoid setting default slog logger in init (#28747) 2023-12-30 21:16:02 +01:00
value.libevm.go chore: logging (#151) 2025-02-24 16:53:21 +00:00
value.libevm_test.go chore: logging (#151) 2025-02-24 16:53:21 +00:00