func (log *PluginLogger) ReadLogMessages(src io.ReadCloser) {
	// pipe plugin stderr to our logging
	scanner := bufio.NewScanner(src)
	for scanner.Scan() {
		str := scanner.Text()
		if str != "" {
			log.handleStderrLine(str)
		}
	}

	str := scanner.Text()
	if str != "" {
		log.handleStderrLine(str)
	}

	src.Close()
}
// ReadLogMessages reads plugin log messages from src, forwarding them to the PluginLoggers Logger.
// ProgressLevel messages are parsed as float64 and forwarded to ProgressChan. If ProgressChan is full,
// then the progress message is not forwarded.
// This method only returns when it reaches the end of src or encounters an error while reading src.
// This method closes src before returning.
ReadLogMessages reads plugin log messages from src, forwarding them to the PluginLoggers Logger.
ProgressLevel messages are parsed as float64 and forwarded to ProgressChan. If ProgressChan is full,
then the progress message is not forwarded.
This method only returns when it reaches the end of src or encounters an error while reading src.
This method closes src before returning.
// ReadLogMessages reads plugin log messages from src forwarding them to the PluginLoggers Logger . // ProgressLevel messages are parsed as float64 and forwarded to ProgressChan . If ProgressChan is full // then the progress message is not forwarded . // This method only returns when it reaches the end of src or encounters an error while reading src . // This method closes src before returning .
func (log *PluginLogger) ReadLogMessages(src io.ReadCloser) {
	scanner := bufio.NewScanner(src)
	for scanner.Scan() {
		str := scanner.Text()
		if str != "" {
			log.handleStderrLine(str)
		}
	}
	str := scanner.Text()
	if str != "" {
		log.handleStderrLine(str)
	}
	src.Close()
}
func ( log * PluginLogger ) ReadLogMessages ( src io . ReadCloser ) { scanner := bufio . NewScanner ( src ) for scanner . Scan ( ) { str := scanner . Text ( ) if str != " " { log . handleStderrLine ( str ) } } str := scanner . Text ( ) if str != " " { log . handleStderrLine ( str ) } src . Close ( ) }
ReadLogMessages reads plugin log messages from src, forwarding them to the PluginLoggers Logger.
ReadLogMessages reads plugin log messages from src forwarding them to the PluginLoggers Logger .
// pipe plugin stderr to our logging