apex tail log
Activate debug logging and display logs in the terminal.
You can also pipe the logs to a file.
force:apex:log:tail
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
‑‑api‑version | N/A | Type: Value Override the api version used for api requests made by this command |
‑‑color | ‑c | Type: Boolean Apply default colors to noteworthy log lines. |
‑‑debug‑level | ‑d | Type: Value Debug level to set on the DEVELOPER_LOG trace flag for your user. |
‑‑flags‑dir | N/A | Type: Value Import flag values from a directory. |
‑‑skip‑trace‑flag | ‑s | Type: Boolean Skip trace flag setup. Assumes that a trace flag and debug level are fully set up. |
‑‑target‑org | ‑o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
Activate debug logging:
Specify a debug level:
Skip the trace flag setup and apply default colors: