vip logs [options]
Retrieve application or batch logs from an environment
Options
Argument | Description |
---|---|
-a , --app | Specify the app |
-d , --debug | Activate debug output |
-e , --env | Specify the environment |
-f , --follow | Keep fetching new logs as they are generated |
-F , --format [value] | Output the log lines in CSV or JSON format (defaults to “text”) |
-h , --help | Output the help for the (sub)command |
-l , --limit <n> | The maximum number of log lines (defaults to 500) |
-t , --type [value] | The type of logs to be returned: “app” or “batch” (defaults to “app”) |
-v , --version | Output the version number |
Examples
# Retrieve the most recent application logs $ vip @mysite.production logs # Get the most recent batch logs $ vip @mysite.production logs --type batch # Get the most recent 100 log entries $ vip @mysite.production logs --limit 100 # Get the most recent 100 log entries formatted as comma-separated values (CSV) $ vip @mysite.production logs --limit 100 --format csv # Get the most recent 100 log entries formatted as JSON $ vip @mysite.production logs --limit 100 --format json
Global Options
Argument | Description |
---|---|
-a , --app=<app> | Specify the app |
-d , --debug | Activate debug output |
-e , --env=<env> | Specify the environment |
-h , --help | Output the help for the (sub)command |
-v , --version | Output the version number |
-y , --yes | Run the command in production without a confirmation prompt |
Last updated: December 17, 2022