https://github.com/t-matsuo/nafder
Nafder is a tool to identifying logs for container which has multi application. It reads logs from named pipe, and outputs them with prefix.
https://github.com/t-matsuo/nafder
container docker logging
Last synced: 7 months ago
JSON representation
Nafder is a tool to identifying logs for container which has multi application. It reads logs from named pipe, and outputs them with prefix.
- Host: GitHub
- URL: https://github.com/t-matsuo/nafder
- Owner: t-matsuo
- License: apache-2.0
- Created: 2021-10-26T12:32:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-06-11T13:46:25.000Z (over 2 years ago)
- Last Synced: 2025-01-28T13:49:23.554Z (9 months ago)
- Topics: container, docker, logging
- Language: Go
- Homepage:
- Size: 82 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Nafder
Nafder is a tool to identifying logs for container which has multi application.
It reads logs from named pipe, and outputs them with prefix.[](https://goreportcard.com/report/github.com/t-matsuo/nafder)

## Usage
```
$ nafder [options...] TargetDir
```(ex)
terminal 1
```
# mkdir /var/run/nafder
# mkfifo /var/run/nafder/app1
# mkfifo /var/run/nafder/app2
# nafder /var/run/nafder
nafder INFO Reading /var/run/nafder/app1
nafder INFO Reading /var/run/nafder/app2
```terminal 2
```
# echo foobar > /var/run/nafder/app1
# echo xxyyzz > /var/run/nafder/app1
```-> nafder(terminal 1) output these logs
```
app1 foobar
app2 xxyyzz
```### Options:
* -c --copy : Copy logs to specified file
* -t --time : Output timestamp
* -d --debug : Print debug messages
* --version : Show version number
* -h --help : Show help### Environment Variables:
* NAFDER_DEBUG=true (default:false)
* Print debug messages (=--debug option)