https://github.com/gongo/9t
9t is multi-file tailer by golang
https://github.com/gongo/9t
Last synced: 11 months ago
JSON representation
9t is multi-file tailer by golang
- Host: GitHub
- URL: https://github.com/gongo/9t
- Owner: gongo
- Created: 2015-03-09T12:45:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-04-22T04:36:29.000Z (about 6 years ago)
- Last Synced: 2025-04-15T11:12:24.525Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 819 KB
- Stars: 133
- Watchers: 3
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
9t
==============================
[](https://travis-ci.org/gongo/9t)
[](https://coveralls.io/r/gongo/9t?branch=master)
9t (nine-tailed fox in Japanese) is a multi-file tailer (like `tail -f a.log b.log ...`).
Usage
------------------------------
```
$ 9t file1 [file2 ...]
```
### Demo

1. Preparation for demo
```sh
$ yukari() { echo '世界一かわいいよ!!' }
$ while :; do yukari >> tamura-yukari.log ; sleep 0.2 ; done
$ while :; do echo $RANDOM >> random.log ; sleep 3 ; done
$ while :; do date >> d.log ; sleep 1 ; done
```
1. Run
```
$ 9t tamura-yukari.log random.log d.log
```
Installation
------------------------------
```
$ go get github.com/gongo/9t/cmd/9t
```
Motivation
------------------------------
So far, Multiple file display can be even `tail -f`.

But, I wanted to see in a similar format as the `heroku logs --tail`.
```
app[web.1]: foo bar baz
app[worker.1]: pizza pizza
app[web.1]: foo bar baz
app[web.2]: just do eat..soso..
.
.
```
License
------------------------------
MIT License