TOC
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.
- 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
- Symfony
3.4
or higher - Doctrine ORM
- Implement in your Symfony application
- Update Doctrine schema
- Test via command
./bin/console test:systemlogs
- 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