NewStructLogger returns a new logger
(cfg *LogConfig)
| 119 | |
| 120 | // NewStructLogger returns a new logger |
| 121 | func NewStructLogger(cfg *LogConfig) *StructLogger { |
| 122 | logger := &StructLogger{ |
| 123 | changedValues: make(map[common.Address]Storage), |
| 124 | } |
| 125 | if cfg != nil { |
| 126 | logger.cfg = *cfg |
| 127 | } |
| 128 | return logger |
| 129 | } |
| 130 | |
| 131 | // CaptureStart implements the Tracer interface to initialize the tracing operation. |
| 132 | func (l *StructLogger) CaptureStart(from common.Address, to common.Address, create bool, input []byte, gas uint64, value *big.Int) error { |
no outgoing calls