( lines int, tee io.Writer )
| 13 | } |
| 14 | |
| 15 | func NewRingLog( lines int, tee io.Writer ) ( r *RingLog ) { return &RingLog{ ring: ring.New( lines ), tee: tee} } |
| 16 | |
| 17 | func ( ringLog *RingLog ) Write( b []byte ) ( n int, err error ) { |
| 18 | if ringLog.tee != nil { n, err = ringLog.tee.Write( b ) } |