Skip to content

tail.Config ReOpen abnormal #176

@Mark3un

Description

@Mark3un
seek := &tail.SeekInfo{}
seek.Offset = 0
seek.Whence = os.SEEK_END

config := tail.Config{}
config.Follow = true
//config.ReOpen = true
config.Location = seek

tails, err := tail.TailFile(filename, config)

When I stop using ReOpen,I got as below:

Stopping tail as file no longer exists: my.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions