https://github.com/thordreier/tailng
Like "tail -F", but it always follow the newest file
https://github.com/thordreier/tailng
filefollow follow logfile logfiles python3 tail tail-f tailng
Last synced: 8 months ago
JSON representation
Like "tail -F", but it always follow the newest file
- Host: GitHub
- URL: https://github.com/thordreier/tailng
- Owner: thordreier
- License: mit
- Created: 2023-12-19T14:57:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-21T06:22:41.000Z (almost 2 years ago)
- Last Synced: 2025-08-17T19:12:58.506Z (10 months ago)
- Topics: filefollow, follow, logfile, logfiles, python3, tail, tail-f, tailng
- Language: Python
- Homepage: https://pypi.org/project/tailng/
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tailng
Python project: Like "tail -F", but it always follow the newest file
## Usage
### Examples
```
$ tailng
Now following testfile1 from position 108
1 4 Fri Dec 22 10:02:34 AM UTC 2023
1 5 Fri Dec 22 10:02:35 AM UTC 2023
Now following testfile2 from position 0
2 1 Fri Dec 22 10:02:36 AM UTC 2023
2 2 Fri Dec 22 10:02:37 AM UTC 2023
2 3 Fri Dec 22 10:02:38 AM UTC 2023
2 4 Fri Dec 22 10:02:39 AM UTC 2023
2 5 Fri Dec 22 10:02:40 AM UTC 2023
Now following testfile3 from position 0
3 1 Fri Dec 22 10:02:41 AM UTC 2023
3 2 Fri Dec 22 10:02:42 AM UTC 2023
3 3 Fri Dec 22 10:02:43 AM UTC 2023
```
## Install
### Install from Python Package Index
```
pip3 install tailng
```
### Install from source
```
git clone https://github.com/thordreier/tailng.git
cd tailng
git pull
pyproject-build
pip3 install $(ls dist/tailng-*-py3-none-any.whl | tail -n1) --force-reinstall
```