1.0.1 • Published 1 year ago

tail-gazer v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Tail Gazer

Tail Gazer is a command-line tool for tailing logs of multiple services.

Installation

Install the package globally with npm:

npm install -g tail-gazer

Usage

The tool expects a configuration file in JSON format, with an array of service objects. Each service object should have the following properties:

  • name: The name of the service.
  • dir: The working directory for the service.
  • command: The command to start the service.
  • logFile: (optional) The file path to log service output to.

Example configuration:

{
  "services": [
    {
      "name": "Frontend Service",
      "dir": "./frontend",
      "command": "npm run dev",
      "logFile": "./logs/frontend.log"
    },
    {
      "name": "Backend Service",
      "dir": "./backend",
      "command": "python app.py",
    }
  ]
}

To run Tail Gazer, navigate to the directory containing your configuration file and run:

tail-gazer

By default, Tail Gazer looks for a file named tail-gazer.json. You can specify a different file with the --config or -c option:

tail-gazer --config my-tail-gazer-config.json

The tool will tail the logs of all services specified in the configuration file, printing the output to the console. The tool also creates a tail-gazer-logs directory in the current directory and saves log files there, if logFile property is provided in the configuration.

License

This project is licensed under the MIT License.

1.0.1

1 year ago

1.0.0

1 year ago