Enabling Debug Logging

Description

When something is not behaving the way you would expect it to, you can enable debug logging to see if there are any messages logged in the sugarcrm.log file.  The sugarcrm.log file may indicate the cause of the behavior.  Some examples might be to see if there are any errors that are occurring or to see what queries are being run.

Solution

Precondition:

You must have Administrative privileges.

    Using the Sugar theme, follow these steps for implementation:

    1. From the Home page, click on the Admin link at the top of the page
    2. In the System section, click on System Settings.
    3. Scroll down to the Logger Settings section.
    4. Set the log level to debug.
    5. Save.
    6. Perform the action that is not working as expected.
    7. Review the sugarcrm.log file.

    The logging is stored in the sugarcrm.log file that is found at the root level of the Sugarcrm directory.  To view the contents of the sugarcrm.log file, you can either go to the file system or you can run the diagnostic tool and download the diagnostic file to your client.  To run the diagnostic tool, follow the steps below:

    1. From the Admin page, Click on the Diagnostic Tool link.
    2. Click the Execute Diagnostic button.
    3. Click the Download the diagnostic file link.
    4. Save the file to your computer.
    5. Review the contents of the sugarcrm.log file.
    6. Click the Delete the diagnostic file link.
    7. Go back to the System Settings page and set the log level back to Fatal.

    Similar Posts:

      None Found

    Comments are closed.