loghouse-io/loghouse-symfony

dev-master 2021-09-29 14:21 UTC

This package is auto-updated.

Last update: 2024-10-29 06:12:54 UTC


README

Latest Version on Packagist Total Downloads

LogHouse is a logging management system that allows you to store hundreds of gigabytes of logs with almost no configuration and with blazing fast ingestion and querying speed.

Installation

You can install the package via composer:

composer require loghouse-io/loghouse-symfony

Usage

  1. You need to add 2 parameters to the .env file
LOGHOUSE_SYMFONY_ACCESS_TOKEN=${LOGHOUSE_SYMFONY_ACCESS_TOKEN}
LOGHOUSE_SYMFONY_BUCKET_ID=${LOGHOUSE_SYMFONY_BUCKET_ID}
  1. You must register a new service in services.yaml
#services.yaml
services:
    ...
    LoghouseIo\LoghouseSymfony\Handlers\LoghouseSymfonyHandler:
            arguments:
                $accessToken: '%env(LOGHOUSE_SYMFONY_ACCESS_TOKEN)%'
                $bucketId: '%env(LOGHOUSE_SYMFONY_BUCKET_ID)%'
  1. And then set up a new handler in monolog.yaml
#monolog.yaml
monolog:
    ...
    handlers:
        ...
        loghouse:
            type: service
            id: LoghouseIo\LoghouseSymfony\Handlers\LoghouseSymfonyHandler

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security

Credits

License

The MIT License (MIT). Please see License File for more information.