7.2. Viewing ESC Logs on MacOS

7.2. Viewing ESC Logs on MacOS

Bugzilla Bug: 234887

The following is a workaround for the Mac ESC should one want to view the logs either within the diagnostics window or with a text editor.

  1. Navigate to /Applications/ESC.app/Contents/MacOS

  2. Create an esc.sh file, as follows:

    #!/bin/sh
    NSPR_LOG_FILE=~/Library/"Application Support"/ESC/Profiles/esc.log
    NSPR_LOG_MODULES=tray:2,coolKeyLib:2,coolKey:2,coolKeyNSS:2,coolKeySmart:2,coolKeyHandler:2
    BASE_DIR=`dirname $0`
    $BASE_DIR/xulrunner &
    
  3. Navigate to /Applications/ESC.app/Contents/MacOS

  4. Execute ./esc.sh

  5. View the logs in the ESC client or in the user's profile directory.

This method also works for the Windows ESC.

  1. Navigate to the C:\Program Files\RedHat\ESC directory

  2. Create an esc.bat file, as follows:

    @echo off
    SET NSPR_LOG_MODULES-tray:2,coolKeyLib:2,coolKey:2,coolKeyNSS:2,coolKeySmart:2,coolKeyHandler:2
    set NSPR_LOG_FILE=%USERPROFILE%\Application Data\RedHat\ESC\esc.log esc.exe