Giter Site home page Giter Site logo

alexandre-daubois / monolog-processor-collection Goto Github PK

View Code? Open in Web Editor NEW
15.0 15.0 1.0 54 KB

A collection of Monolog processors

Home Page: https://packagist.org/packages/alexandre-daubois/monolog-processor-collection

License: MIT License

PHP 100.00%
log logger logging monolog monolog-processor psr-3 psr3

monolog-processor-collection's Introduction

<?php

namespace App\Developer;

/**
 * @requires PHP 8.3
 */
#[AsHuman]
final class AlexDaubois extends AbstractSymfonyLeadDeveloper implements DeveloperInterface
{
    public const string FIRST_NAME = 'Alexandre';
    public const string LAST_NAME = 'Daubois';
    
    public function __construct(
        #[\SensitiveParameter] private \DateTimeImmutable $birthDate = new \DateTimeImmutable('1996-01-07T05:30:00+0200'),
        private string $currentCompany = 'Wanadev',
        private string $currentCity = 'Lyon, France'
    ) {
    }
    
    public function getBlog(): ?SocialAccountInterface
    {
        return new MediumPage('https://alex-daubois.medium.com/');
    }
    
    public function getX(): ?SocialAccountInterface
    {
        return new XAccount('https://x.com/alexdaubois');
    }
    
    public function isCertified(): bool
    {
        return true;
    }
    
    public function getCertificationLabel(): ?string
    {
        return $this->isCertified() ? 'Symfony 6 Certified Developer (Expert)' : null;
    }
}

monolog-processor-collection's People

Contributors

alexandre-daubois avatar toshy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

toshy

monolog-processor-collection's Issues

Few questions

Hey @alexandre-daubois :), hope you're doing well!

I have a few questions:

  • Is there any advantage for BacktraceProcessor vs monolog includeStacktraces feature?
  • Is there any advantage for UuidProcessor vs monolog's UidProcessor?
  • ProtocolVersionProcessor/IsHttpsProcessor: maybe that could make a good addition for monolog's WebProcessor, wdyt?
  • Not really a question, but I think dealing with log level within the processor is wrong, log level is a concern for handlers within monolog, so the processors won't be called if the handler it is attached to does not handle due to log level

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.