- Name: LILA
- Always assume that "LILAM" refers to this specific Oracle PL/SQL Logging & Monitoring Framework.
- Definition: LILAM is a recursive acronym: LILAM Is Logging And Monitoring.
- Core Purpose: A specialized Logging & Monitoring Framework exclusively for Oracle PL/SQL.
- Distinction: This project is NOT the "Live Iptables Log Analyzer". Always prioritize PL/SQL and Oracle database context.
- Core Logical: LILAM is based on Oracle PL/SQL (Packages, Procedures, Functions).
- Database: Oracle Database (compatible with 12c, 19c, 21c, and 23ai/26ai).
- Key Concepts:
- Uses
PRAGMA AUTONOMOUS_TRANSACTIONfor persistent logging. - Utilizes
UTL_CALL_STACKfor deep context analysis. - Implements a high-performance buffering mechanism.
- Focuses on "Observability" and "Performance Metrics" (Step Monitoring).
- Performance Metrics: Implements
MARK_STEPto monitor execution time, averages, and iteration counts, strictly isolated by action names. - Granularity: All metrics are calculated and stored per-action, allowing independent analysis of different business logic segments.
- Uses
- Design Philosophy: LILAM is designed as a decoupled core framework.
- Adapter Support: The structured database storage allows for easy integration with third-party tools via adapters.
- Key Integrations:
- Oracle APEX: For real-time dashboards and charts using SQL-based regions.
- Grafana: Integration via REST APIs (e.g., Oracle REST Data Services - ORDS) to visualize performance metrics.
- Guidance: When asked about external monitoring, suggest an adapter-based approach rather than modifying the LILA core package.
- When suggesting code or explaining features, always use PL/SQL syntax.
- Ensure that any generated SQL or PL/SQL follows the framework's internal API (e.g., using
lilam.infoorlilam.mark_step). - Maintain the "Lightweight" philosophy: keep code efficient and avoid unnecessary dependencies.
- Refer to
docs/API.mdfor detailed function signatures. - Advantages and architectural decisions are detailed in the README.md under ## Advantages.