Code Monkey home page Code Monkey logo

codeconut-ltd / symfony-system-logger Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 20 KB

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

License: MIT License

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

symfony-system-logger's Introduction

Symfony

Symfony System Logger

TOC



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

symfony-system-logger's People

Contributors

christianoellers avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.