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.
- Host: GitHub
- URL: https://github.com/codeconut-ltd/symfony-system-logger
- Owner: Codeconut-Ltd
- License: mit
- Created: 2023-06-13T19:28:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-25T09:42:37.000Z (over 2 years ago)
- Last Synced: 2025-03-16T12:15:31.547Z (8 months ago)
- Topics: 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
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

# 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