An open API service indexing awesome lists of open source software.

https://github.com/codeconut-ltd/symfony-system-logger

Minimalist custom Symfony logger that stores arbitrary data with hashsums in the DB.
https://github.com/codeconut-ltd/symfony-system-logger

cli doctrine doctrine-annotations doctrine-dbal doctrine-orm logger php php7 php7-framework php74 symfony symfony-3-example symfony-3-sample-project symfony-command symfony-component symfony-console symfony-entity symfony-php symfony-php-framework symfony3

Last synced: 8 months ago
JSON representation

Minimalist custom Symfony logger that stores arbitrary data with hashsums in the DB.

Awesome Lists containing this project

README

          

![Symfony](teaser.png)

# Symfony System Logger

TOC

- [About](#about)
- [Setup](#setup)
- [Use](#use)
- [Todo](#todo)


---

## About

Simple custom database logger.

Use cases

- Dev/Debug and monitoring purposes as alternative to wasteful CLI output and the default file based logging.
- Reduce flood of information generated e.g. by impending API calls, jobs and general service access,
and filter the relevant ones. For instance, if there's a bug you might not need to see the same message a hundred times.

### Concepts

- Log messages can go into certain channels, like with the CLI loggers (define your own)
- Log messages are hashed and hashsums stored, so that duplicates can later be found/ filtered

## Setup

### Requirements

- Symfony `3.4` or higher
- Doctrine ORM

## Use

1. Implement in your Symfony application
2. Update Doctrine schema
3. Test via command `./bin/console test:systemlogs`

## Todo

- Check if hashsum algorithm is safe to use
- Consider implementing an additional, suggested data normalization tool
- e.g. to scrub/ sanitize/ anonymize log or API data