Written reports how many bytes were successfully written to the file.
()
| 446 | |
| 447 | // Written reports how many bytes were successfully written to the file. |
| 448 | func (s *DebugFileSink) Written() int64 { |
| 449 | if s == nil || s.capped == nil { |
| 450 | return 0 |
| 451 | } |
| 452 | return s.capped.Written() |
| 453 | } |
| 454 | |
| 455 | // AddDebugFileSink returns a new logger that, in addition to whatever |
| 456 | // sinks the input logger already had, writes every debug-level-or-above |
no outgoing calls