Download the PHP package intelligent-intern/loki-bundle without Composer
On this page you can find all versions of the php package intelligent-intern/loki-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download intelligent-intern/loki-bundle
More information about intelligent-intern/loki-bundle
Files in intelligent-intern/loki-bundle
Package loki-bundle
Short Description Symfony bundle for Loki integration
License MIT
Informations about the package loki-bundle
Intelligent Intern Loki Bundle
The intelligent-intern/loki-bundle
integrates Loki with the Intelligent Intern Core Framework, providing a powerful and extensible logging solution.
Installation
Install the bundle using Composer:
composer require intelligent-intern/loki-bundle
Configuration
Ensure the following secret is set in vault:
secret/data/data/config:
LOG_TARGET: loki
And add the detailed Loki configuration:
secret/data/data/loki:
url: your_loki_url
token: your_loki_token
log_level: your_log_level
Usage
Once the bundle is installed and configured, the Core framework will dynamically detect the Loki logging service via the log.strategy
tag.
The service will be available via the LogServiceFactory
:
Extensibility
This bundle is specifically designed to integrate with intelligent-intern/core
. It leverages the dynamic service discovery mechanism to ensure seamless compatibility.
If you'd like to add additional logging strategies, simply create a similar bundle that implements the LogServiceInterface
and tag its service with log.strategy
.
For example:
services:
Your\CustomBundle\Service\CustomLogService:
tags: ['log.strategy']
License
This bundle is open-sourced software licensed under the MIT license.
All versions of loki-bundle with dependencies
symfony/dependency-injection Version 7.2.*
symfony/framework-bundle Version 7.2.*