(p []byte)
| 58 | } |
| 59 | |
| 60 | func (w gclWriter) Write(p []byte) (n int, err error) { |
| 61 | w.logger.Log(logging.Entry{ |
| 62 | Severity: w.severity, |
| 63 | Payload: string(p), |
| 64 | }) |
| 65 | return len(p), nil |
| 66 | } |
| 67 | |
| 68 | // if a non-nil logging Client is returned, it should be closed before the |
| 69 | // program terminates to flush any buffered log entries. |