go-ethereum/cmd
Martin Holst Swende b8d44ed98b
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)
```
2023-12-05 11:54:44 +01:00
..
abidump all: update license headers and AUTHORS from git history (#24947) 2022-05-24 20:39:40 +02:00
abigen all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
bootnode all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
clef all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
devp2p all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00
ethkey cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
evm cmd/evm: fix Env struct json tag (#28635) 2023-12-04 11:52:55 +02:00
geth log: remove lazy, remove unused interfaces, unexport methods (#28622) 2023-12-05 11:54:44 +01:00
p2psim all: replace some cases of strings.SplitN with strings.Cut (#28446) 2023-11-15 14:42:33 +01:00
rlpdump cmd: run tests in parallel (#28546) 2023-11-20 10:52:14 +01:00
utils all: replace log15 with slog (#28187) 2023-11-29 08:33:50 +01:00