djangoplay-cli / Runbooks / Logs Runbook

Logs Runbook

The default application is:

1 min readApplies to v1.0.6
On this page ▾
  1. Default log
  2. Select an application
  3. Filter level
  4. Historical lines
  5. Disable following
  6. Missing application

Default log

bash
dplay logs
text
django

and the default historical line count is:

text
50

Select an application

bash
dplay logs users
dplay logs mailer

Application names are discovered dynamically from:

text
webapp/logs/*.log

Filter level

bash
dplay logs mailer --level ERROR

Supported log levels are parsed from the project's expected log format, such as DEBUG, INFO, WARNING, ERROR, and CRITICAL.

Historical lines

bash
dplay logs django --lines 100

Disable following

bash
dplay logs django --no-follow

Missing application

The CLI reports the missing log and lists the available application log names.