Logging System
The documentation is constantly evolving and updated alongside the project's progress. Since it is developed in parallel with the code, some sections may temporarily refer to earlier versions of the system-these are gradually adapted to the current state of the application. If you notice any outdated information, please report it or open an Issue / Pull Request.
Documentation
# Logging System
# Overview
The logging system provides a standard interface for application logging.
It follows a structure similar to PSR-3.
# Logger Interface
use Psr\Log\LoggerInterface;
# Log Levels
| Level | Description |
|---|---|
| --------- | ------------------------- |
| emergency | System unusable |
| alert | Immediate action required |
| critical | Critical conditions |
| error | Runtime errors |
| warning | Warnings |
| notice | Normal but significant |
| info | Informational |
| debug | Debug-level messages |
# Example Usage
$logger->info('User logged in', [
'user_id' => 1
]);
# Context Data
Supports placeholders:
$logger->info(
'User {id} logged in',
['id' => 1]
);
# Generic Log Method
$logger->log('info', 'Message');
# Best Practices
- Use appropriate log levels
- Avoid logging sensitive data
- Use structured context
# Integration
The framework logger implements the PSR-3 logger contract. Applications and platform modules can inject it into HTTP clients, error handling, and monitoring components.
Documentation List
01. GETTING STARTED
02. CORE CONCEPTS
03. HTTP AND ROUTING
04. DATA
05. VALIDATION
06. INFRASTRUCTURE
07. SECURITY
08. PRESENTATION
09. LOCALIZATION
10. RUNTIME
11. MODULES
12. PLATFORM LIBRARIES