independent flag for json structured logging
- logjson flag remove logformat flag - passed to eth Config - logsystem not a field of Ethereum - LogSystem does not need to expose GetLogLevel/SetLogLevel - message struct just implements more generic LogMsg interface - LogMsg is a fmt.Stringer with Level() - jsonMsg ([]byte) implements LogMsg - remove "raw" systems - move level logic inside StdLogSystem - logsystems only print their kind of msg: jsonLogSystem prints jsonMsg, StdLogSystem prints stdMsg
Showing
- cmd/ethereum/main.go 1 addition, 1 deletioncmd/ethereum/main.go
- cmd/utils/flags.go 5 additions, 5 deletionscmd/utils/flags.go
- eth/backend.go 17 additions, 14 deletionseth/backend.go
- logger/log.go 16 additions, 8 deletionslogger/log.go
- logger/loggers.go 3 additions, 4 deletionslogger/loggers.go
- logger/loggers_test.go 6 additions, 4 deletionslogger/loggers_test.go
- logger/logsystem.go 17 additions, 44 deletionslogger/logsystem.go
- logger/sys.go 30 additions, 15 deletionslogger/sys.go
Loading
Please register or sign in to comment