Download the PHP package maatify/slim-logger without Composer
On this page you can find all versions of the php package maatify/slim-logger. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download maatify/slim-logger
More information about maatify/slim-logger
Files in maatify/slim-logger
Download maatify/slim-logger
More information about maatify/slim-logger
Files in maatify/slim-logger
Vendor maatify
Package slim-logger
Short Description Slim-compatible structured logger with PSR-7 request support
License MIT
Homepage https://github.com/Maatify/
Package slim-logger
Short Description Slim-compatible structured logger with PSR-7 request support
License MIT
Homepage https://github.com/Maatify/
Please rate this library. Is it a good library?
Informations about the package slim-logger
Maatify Slim Logger
Maatify Slim Logger is a lightweight, PSR-7 compatible, Slim-friendly structured logger for PHP applications. It is part of the modular Maatify ecosystem.
๐ Features
- โ PSR-7 request-aware logging (integrates with Slim Framework)
- โ
Uses
LogLevelEnum
(PHP 8.1+) - โ Logs to file in JSON format
- โ
File names include log level (
_response_error_...
) - โ
Static access with
Logger::recordStatic()
- โ Automatically creates secure log directories
- โ Works with Slim or pure PHP
- โ GitHub Actions CI ready
๐ฆ Installation
๐งฑ Namespaces
- Logger:
Maatify\SlimLogger\Log\Logger
- Enum:
Maatify\SlimLogger\Log\LogLevelEnum
- Path Helper:
Maatify\SlimLogger\Store\File\Path
๐ Folder Structure
โ Basic Usage (Slim or Plain PHP)
๐ก Usage in Slim Route
โ ๏ธ Logging Exceptions
๐ฃ Static Logging
Log from anywhere โ no need to instantiate:
โ Static Exception Example
๐งช (Advanced) Overriding Static Instance for Testing
In PHPUnit or setup environments, use:
Then recordStatic()
will use that injected instance and path.
๐ Log File Naming Example
โ๏ธ Configuration
Option | Default | Description |
---|---|---|
Path |
project root | Base path for log files |
Extension |
.log |
File extension for log files |
๐งช Run Tests Locally
๐ GitHub CI Integration
Tests run automatically on push via:
.github/workflows/run-tests.yml
๐ License
Maatify.dev
๐โโ๏ธ Questions?
- GitHub: github.com/maatify/slim-logger
All versions of slim-logger with dependencies
PHP Build Version
Package Version
The package maatify/slim-logger contains the following files
Loading the files please wait ....