code: func (l *logger) Write(p []byte) (int, error) {
  	msg := strings.TrimRight(string(p), "\n")
  	l.send(LevelInfo, 4, msg, nil)
  	if o, ok := l.output.(*OutputChannel); ok {
  		o.Flush()
  	}
  	return len(p), nil
  }
docs: // Write implements io.Writer interface