Skip to content
  • viktor's avatar
    78cff9e3
    independent flag for json structured logging · 78cff9e3
    viktor authored
    - 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
    78cff9e3
    independent flag for json structured logging
    viktor authored
    - 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
Loading