Skip to content

Logging Service

The Logging Service is a centralized service designed to collect, process, and store all logging events occurring across the platform.
It receives log messages asynchronously and processes them based on their type without affecting core business flows.


Core Responsibilities

  • Listening to log events from a centralized logging channel
  • Parsing incoming log messages and identifying their types
  • Routing logs to the appropriate internal services for processing
  • Persisting logs in the database
  • Sending log data to external monitoring and metrics systems
  • Enforcing user-level and system-level logging rules

Event-Driven Architecture

The Logging Service follows an event-driven architecture:

  • Subscribes to a centralized message broker channel
  • Receives log messages asynchronously
  • Processes logs independently from business services
  • Ensures fault tolerance and loose coupling
  • Prevents logging operations from blocking main application flows

Supported Log Types

User Logs

  • Records actions performed by end users
  • Respects individual user logging levels
  • Filters out technical or ignored endpoints
  • Associates logs with user identities
  • Provides a complete audit trail for user activity

Cron Logs (Scheduled Tasks)

  • Logs execution results of scheduled jobs
  • Stores schedule names and cron expressions
  • Tracks success and failure states
  • Logs are saved on behalf of the system (root user)
  • Enables monitoring and auditing of background jobs

SQL Logs

  • Captures SQL execution events and statistics
  • Processes log data asynchronously
  • Forwards logs to external monitoring and analytics platforms
  • Minimizes performance impact on core services

Log Persistence

  • User and Cron logs are stored in the database
  • Each log entry includes:
    • User identifier
    • Request path
    • Query parameters
    • Log message
    • Detailed description
    • Log level (INFO, ERROR, etc.)

Filtering and Control

  • Logs are stored according to user-specific logging levels
  • Certain technical endpoints are excluded from logging
  • Log levels help reduce unnecessary noise in the system

Monitoring and Integration

  • SQL logs can be forwarded to external monitoring systems
  • Log forwarding is handled asynchronously
  • Integration can be enabled or disabled via configuration

Summary

The Logging Service provides centralized, reliable, and scalable logging across the platform.
It enables auditing, monitoring, and diagnostics while maintaining system performance and stability.