b8d44ed98b
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) ``` |
||
---|---|---|
.. | ||
testdata | ||
accountcmd_test.go | ||
accountcmd.go | ||
attach_test.go | ||
chaincmd.go | ||
config.go | ||
consolecmd_test.go | ||
consolecmd.go | ||
dbcmd.go | ||
exportcmd_test.go | ||
genesis_test.go | ||
logging_test.go | ||
logtestcmd_active.go | ||
logtestcmd_inactive.go | ||
main.go | ||
misccmd.go | ||
run_test.go | ||
snapshot.go | ||
verkle.go | ||
version_check_test.go | ||
version_check.go |