apex tail log

<!-- prettier-ignore-start -->

Activate debug logging and display logs in the terminal.

Description for apex tail log

You can also pipe the logs to a file.

Aliases for apex tail log

force:apex:log:tail

Flags

Flag Name (Long) Flag Name (Short) Description
<code>‑‑api‑version</code> N/A Type: Value<br><br>Override the api version used for api requests made by this command
<code>‑‑color</code> <code>‑c</code> Type: Boolean<br><br>Apply default colors to noteworthy log lines.
<code>‑‑debug‑level</code> <code>‑d</code> Type: Value<br><br>Debug level to set on the DEVELOPER_LOG trace flag for your user.
<code>‑‑flags‑dir</code> N/A Type: Value<br><br>Import flag values from a directory.
<code>‑‑skip‑trace‑flag</code> <code>‑s</code> Type: Boolean<br><br>Skip trace flag setup. Assumes that a trace flag and debug level are fully set up.
<code>‑‑target‑org</code> <code>‑o</code> Type: Value<br>Required<br><br>Username or alias of the target org. Not required if the target-org configuration variable is already set.

Examples for apex tail log

Activate debug logging:

sf apex tail log

Specify a debug level:

sf apex tail log --debug-level MyDebugLevel

Skip the trace flag setup and apply default colors:

sf apex tail log --color --skip-trace-flag
<!-- prettier-ignore-end -->