(p []byte)
| 36 | } |
| 37 | |
| 38 | func (w stdlogWriter) Write(p []byte) (n int, err error) { |
| 39 | msg := string(p) |
| 40 | // stdlib includes a trailing newline on the msg that |
| 41 | // we do not want. |
| 42 | msg = strings.TrimSuffix(msg, "\n") |
| 43 | |
| 44 | w.l.log(w.ctx, w.level, msg, nil) |
| 45 | |
| 46 | return len(p), nil |
| 47 | } |
no test coverage detected