nafder

command module
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Go Report Card

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)

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL