Support filelog watching in Windows.

This commit is contained in:
Jeremy Edwards
2020-12-21 23:56:49 +00:00
parent b951f24297
commit adc587f222
5 changed files with 45 additions and 20 deletions

View File

@@ -17,13 +17,13 @@ limitations under the License.
package filelog
import (
"fmt"
"io"
"github.com/hpcloud/tail"
)
// getLogReader returns log reader for filelog log. Note that getLogReader doesn't look back
// to the rolled out logs.
func getLogReader(path string) (io.ReadCloser, error) {
// TODO: Support this on windows.
return nil, fmt.Errorf("not supported on windows.")
return tail.OpenFile(path)
}