Sha256: 5664c7152bfd2230ce49e36246939063a3b7787af68cf2770e6643107921c662
Contents?: true
Size: 1.67 KB
Versions: 3
Compression:
Stored size: 1.67 KB
Contents
The log commands will filter out the logs for the last ran terraspace command. It does this by filtering for the last found PID in the log files. ## Quick Start Follow all the logs as you're running `terraspace all up`: terraspace log -f Note, Terraspace automatically checks every second for new logs and adds them to be followed. ## View Logs View last 10 lines of each log file. terraspace log up network # view up log on specific stack terraspace log up # view all up logs terraspace log down # view all down logs terraspace log # view all logs: up, down, etc By default, the log command shows the last 10 lines of the logs for each log file. You can use the `-n` option to adjust this. terraspace log -n 2 # view last 2 lines of all logs: up, down, etc To show all logs, use the `-a` option. terraspace log up -a Note, if both an action and stack is specified, then it defaults to showing all logs. If you want not to show all logs, use `--no-all`. ## Tail Logs To tail logs, use the `-f` option. terraspace log up network -f # view up log on specific stack terraspace log up -f # view all up logs terraspace log down -f # view all down logs terraspace log -f # view all logs: up, down, etc ## Timestamps The timestamps are shown by default when you are looking for multiple files. When you specify both the action and stack for a single log file, then timestamps are not shown. terraspace log up # timestamps will be shown in this case terraspace log up network # timestamps not be shown in this case To show timestamps: terraspace up up network --timestamps
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
terraspace-0.3.6 | lib/terraspace/cli/help/log.md |
terraspace-0.3.5 | lib/terraspace/cli/help/log.md |
terraspace-0.3.4 | lib/terraspace/cli/help/log.md |