Skip to content

System Logs in WhatsMark ​

WhatsMark offers a comprehensive Log Viewer that provides real-time insight into your application’s health and behavior. Whether you're debugging, tracking failed requests, or analyzing system changes, this module ensures detailed log visibility for developers and admins.

system-log

Key Features ​

Severity-Based Filters ​

WhatsMark categorizes logs using Laravel’s built-in logging levels. Each level represents the severity and purpose of the log entry:

LevelDescription
EmergencySystem is unusable. Requires immediate attention.
Example: β€œServer crashed and cannot restart.”
AlertAction must be taken immediately.
Example: β€œDatabase connection dropped unexpectedly.”
CriticalCritical conditions that threaten core functionality.
Example: β€œFailed to load payment gateway keys.”
ErrorRuntime errors that should be investigated but don’t halt the system.
Example: β€œWebhook timeout” or β€œAPI failed to respond.”
WarningSomething unexpected occurred but the system continues to function.
Example: β€œDeprecated config used.”
NoticeNormal but significant events.
β„Ή Example: β€œNew admin user created.”
InfoInformational messages for general application events.
Example: β€œUser logged in successfully.”
DebugDetailed debug information for developers during testing.
Example: β€œVariable $user contains null.”
LocalCustom tag to show logs relevant only to local/development environments.
Example: β€œTesting mode active.”

Log Entries Overview ​

WhatsMark presents logs in a user-friendly, paginated table with the following structure:

FieldDescription
LevelSeverity classification (e.g. ERROR, DEBUG, INFO).
Date & TimeTimestamp of when the log was generated (e.g., 2025-06-20 07:10:11).
ContentBrief description or a truncated JSON message of the error or system message.
ActionsA View button to examine complete log details in a modal window.
PaginationSelect how many entries to display per page (e.g., 15 Per Page).

View Log Entry Details ​

When clicking on the View button, a modal displays detailed content from the selected log.

system-log

Example Log Entry ​

Log Entry: 2025-02-28 15:24:28Level: ERROREnvironment: local

This type of error usually indicates a network timeout or DNS resolution failure during a webhook/API call.

Log File Management Options ​

Manage and maintain your logs effectively with the following actions:

  • Refresh – Updates the view to show the latest entries.
  • Delete – Deletes the selected log file (use with caution).
  • Clear All Logs – Erases all logs in one action for cleanup and space recovery.
  • Log File Selector – Switch between logs using the dropdown (e.g., laravel-2025-06-20.log).

Common Log Issues and Descriptions ​

Issue TypeDescription
Webhook TimeoutOccurs when external APIs or webhooks fail to respond within the allowed time.
Template ErrorsHappens when message templates fail to render properly.
Config ErrorsUsually due to missing or outdated config cache.
Route Not FoundIndicates missing or invalid endpoint usage.

Log Actions Explained ​

Each log entry listed in the log viewer provides an "Actions" column where you can perform detailed operations:

View ​

  • Clicking the View button opens a modal window showing the full log entry.
  • It includes:
    • Timestamp
    • Log Level (e.g., ERROR, WARNING)
    • Environment (e.g., local, production)
    • Full content of the log (API response, webhook error, exception stack, etc.)
  • This feature is especially useful for debugging failed webhooks, API timeouts, or template rendering issues.

Why the View Action Matters ​

  • Helps identify root causes of recurring issues.
  • Enables quick inspection without needing to open log files manually.
  • Works with filters (Error, Warning, Info, Debug) for efficient troubleshooting.

Use the "View" action consistently when:

  • You need full tracebacks for Laravel exceptions.
  • A webhook or cron job is silently failing.
  • Logs appear frequently for the same event (indicating a systemic error).

Β© 2024 - Corbital Technologies. All rights reserved.