Links
⌨️

CLI

Capture logs from terminal!

Install Dashcam from NPM

The Dashcam CLI is available via npm:
npm install dashcam -g
You can make sure it's installed correctly by running the following command
dashcam version

Capture logs from your shell

Simply type dashcam record to capture logs from the current shell session.
❯ dashcam record
This session is being recorded by Dashcam
Type `exit` to stop recording

Capture logs from every new session

Now, to ensure we capture the logs from your CLI, we need to edit the .bashrc or .zshrc. If you need help with this, be sure to join our Discord.
Open your profile, and add the following line to the end:
dashcam record
Now, close your terminal and open it again. You should see a confirmation that Dashcam is now tracking your CLI!

Capture terminal logs manually

Alternatively, there's a way to capture logs manually without using the CLI using tee command, for Unix and Unix-like operating systems.
  1. 1.
    Name the entry
  2. 2.
    Choose Application
  3. 3.
    Add the path /tmp/myapp.log
  4. 4.
    Hit Save
  5. 5.
    Start a capture on Dashcam desktop
Then in your terminal this is how you can start it:
<command> 2>&1 | tee -a /tmp/myapp.log
Where:
  • <command> is a shell command which starts your app or service such as npm start or python app.py
  • /tmp/myapp.log is the path specified in step 3