Support Made Easy

Need help navigating the portal or accessing something?

If you’re having trouble accessing a document or need a custom summary, you can:

The Debug Logs Module in MokoCRM records detailed system activity for debugging, auditing, and monitoring purposes. It captures module operations, user actions, system errors, and database queries—essential for troubleshooting issues and verifying business logic. This tool is recommended for development and controlled production use with log rotation enabled.

The Debug Logs Module in MokoCRM records detailed system activity for debugging, auditing, and monitoring purposes. It captures module operations, user actions, system errors, and database queries—essential for troubleshooting issues and verifying business logic. This tool is recommended for development and controlled production use with log rotation enabled.

🧾 Enabling the Module

  1. Navigate to:
    Home → Setup → Modules → Debug Logs
  2. Click Activate
  3. Then configure logging level under:
    Home → Setup → Other → MAIN_LOGTOHTML and related constants

🪵 Logging Options

  • MAIN_LOGTOHTML: Show log output in page footer (not for production)
  • MAIN_LOGTOFILE: Write logs to documents/logs/ directory
  • MAIN_LOG_LEVEL:
    • 0 = None
    • 1 = Errors only
    • 2 = Errors + Warnings
    • 3 = Full Debug (SQL, hooks, etc.)

🗂️ Accessing Logs

  • Log files are stored in:
    /documents/logs/
  • Each file includes timestamp, user session, and module context
  • Access via file browser or terminal (admin-only)

📊 Use Cases

  • Trace issues in custom modules or integrations
  • Monitor unexpected behavior during user sessions
  • Identify database performance issues
  • Audit user actions and workflows

📌 Best Practices

  • Enable log rotation to prevent large files
  • Store logs in a secure, backed-up location
  • Disable full debug logging in production
  • Coordinate with Moko Consulting for log analysis, module debugging, or automation issues

🛎️ Prefer white‑glove setup?

Moko Consulting can provision the line, port your number, tune policies, and hand you a zero‑drama system with a one‑page runbook.
Find out More Here or Contact us to find out more!
Light
Dark