{"id":19167078,"url":"https://github.com/powerman/tail","last_synced_at":"2025-05-07T13:36:33.219Z","repository":{"id":34853233,"uuid":"159065352","full_name":"powerman/tail","owner":"powerman","description":"Go package tail implements behaviour of `tail -F` to follow rotated log files","archived":false,"fork":false,"pushed_at":"2023-03-20T15:59:48.000Z","size":496,"stargazers_count":8,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-06T03:58:07.537Z","etag":null,"topics":["go","golang","golang-library","golang-package","tail"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powerman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-25T19:12:52.000Z","updated_at":"2024-02-28T10:00:30.000Z","dependencies_parsed_at":"2024-06-18T22:42:30.253Z","dependency_job_id":"455db64b-15ef-423d-a775-08f7a0f095c6","html_url":"https://github.com/powerman/tail","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Ftail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Ftail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Ftail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powerman%2Ftail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powerman","download_url":"https://codeload.github.com/powerman/tail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252888006,"owners_count":21819942,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang","golang-library","golang-package","tail"],"created_at":"2024-11-09T09:35:43.357Z","updated_at":"2025-05-07T13:36:33.200Z","avatar_url":"https://github.com/powerman.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go package tail implements behaviour of `tail` tool\n\n[![Go Reference](https://pkg.go.dev/badge/github.com/powerman/tail.svg)](https://pkg.go.dev/github.com/powerman/tail)\n[![CI/CD](https://github.com/powerman/tail/workflows/CI/CD/badge.svg?event=push)](https://github.com/powerman/tail/actions?query=workflow%3ACI%2FCD)\n[![Coverage Status](https://coveralls.io/repos/github/powerman/tail/badge.svg?branch=master)](https://coveralls.io/github/powerman/tail?branch=master)\n[![Go Report Card](https://goreportcard.com/badge/github.com/powerman/tail)](https://goreportcard.com/report/github.com/powerman/tail)\n[![Release](https://img.shields.io/github/v/release/powerman/tail)](https://github.com/powerman/tail/releases/latest)\n\nGo package tail implements behaviour of `tail -n 0 -F path` to follow\nrotated log files using polling.\n\nMost existing solutions for Go have race condition issues and occasionally\nmay lose lines from tracked file - such bugs are hard to fix without\nmassive changes in their architecture, so it turns out to be easier to\nreimplement this functionality from scratch to make it work reliable and\ndon't lose data.\n\nThis package tries to log messages in same way as `tail`.\n\nUnlike `tail` tool it does track renamed/removed file contents up to the\nmoment new file will be created with original name - this ensure no data\nwill be lost in case log rotation is done by external tool (i.e. not the\none which write to log file) and thus original log file may be appended\nbetween rename/removal and reopening.\n\nUnlike `tail` it does not support file truncation. While this can't work\nreliable, truncate support may be added in the future.\n\n## Installation\n\n```\ngo get github.com/powerman/tail\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Ftail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowerman%2Ftail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowerman%2Ftail/lists"}