go-ethereum/light
Daniel Liu 14acdf2dd1 log: remove lazy, remove unused interfaces, unexport methods (#28622)
This change

- Removes interface `log.Format`,
- Removes method `log.FormatFunc`,
- unexports `TerminalHandler.TerminalFormat` formatting methods (renamed to `TerminalHandler.format`)
- removes the notion of `log.Lazy` values

The lazy handler was useful in the old log package, since it
could defer the evaluation of costly attributes until later in the
log pipeline: thus, if the logging was done at 'Trace', we could
skip evaluation if logging only was set to 'Info'.

With the move to slog, this way of deferring evaluation is no longer
needed, since slog introduced 'Enabled': the caller can thus do
the evaluate-or-not decision at the callsite, which is much more
straight-forward than dealing with lazy reflect-based evaluation.

Also, lazy evaluation would not work with 'native' slog, as in, these
two statements would be evaluated differently:

```golang
  log.Info("foo", "my lazy", lazyObj)
  slog.Info("foo", "my lazy", lazyObj)
```
2024-11-15 10:02:42 +08:00
..
lightchain.go all: fix staticcheck warning ST1006: don't use generic name self 2024-10-25 21:30:54 +08:00
lightchain_test.go all: use unified emptyRootHash and emptyCodeHash (#26718) 2024-10-21 17:55:16 +08:00
nodeset.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
odr.go core,eth,light: remove duplicated functions 2024-08-03 10:03:22 +08:00
odr_test.go core: only check sendernoeoa in non fake mode (#23424) 2024-11-01 11:36:53 +08:00
odr_util.go core/types: add EffectiveGasPrice in Receipt (#26713) 2024-11-01 11:36:53 +08:00
postprocess.go core/types: replace core.SetReceiptsData with receipts.DeriveFields 2024-11-01 11:36:52 +08:00
trie.go new EVM Upgrade 2021-09-21 16:53:46 +05:30
trie_test.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2024-11-01 11:36:52 +08:00
txpool.go log: remove lazy, remove unused interfaces, unexport methods (#28622) 2024-11-15 10:02:42 +08:00
txpool_test.go accounts/abi/bind: fix bounded contracts and sim backend for 1559 (#23038) 2024-11-01 11:36:52 +08:00