Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:63778 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 75835 invoked from network); 8 Nov 2012 13:13:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Nov 2012 13:13:30 -0000 Authentication-Results: pb1.pair.com header.from=patrick.allaert@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ea0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:50097] helo=mail-ea0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 55/C0-04518-9FFAB905 for ; Thu, 08 Nov 2012 08:13:30 -0500 Received: by mail-ea0-f170.google.com with SMTP id a13so1128140eaa.29 for ; Thu, 08 Nov 2012 05:13:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=lpGgS/D6uGjoNORjCJAmJyai60jTmlfoNNuhiAuzkko=; b=LID89iXsALKKO1hYg3gsc9l57H0OYTaBgfOTOXwJPqgj3UJlmb6YXs14ck4Ns17tOX zN70jDpqN6uavFVa99dchrWtifwHleMKNRwWmBtLKh40zHmyendl7mb+iHyGrErXSwgr TaGMuN29Y+8bOjjyv8SegnOsoSTp89dWN/GbVC+wCxiivG7TFmnFmbxJSfjh5LjuB+KX itArHORJwJ7fn2p042itQO4GwquqSj1cCmSF3CrHVtiogJCSG4yWq+g81wsCH1PgbfI9 B79jAFTjWqK7chAOTTMAErXi+WRVPy7KyfmS9uW3Gg/dk4iisC5Wb6bHz2ExsVWEEtbz nfvQ== MIME-Version: 1.0 Received: by 10.14.223.4 with SMTP id u4mr27096485eep.19.1352380406904; Thu, 08 Nov 2012 05:13:26 -0800 (PST) Sender: patrick.allaert@gmail.com Received: by 10.14.129.193 with HTTP; Thu, 8 Nov 2012 05:13:26 -0800 (PST) In-Reply-To: References: Date: Thu, 8 Nov 2012 14:13:26 +0100 X-Google-Sender-Auth: P8_TfsWvK6WnMC_T55YoyoXc8aM Message-ID: To: Florin Razvan Patan Cc: PHP Development Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] Implement a LoggerInterface to PHP From: patrickallaert@php.net (Patrick ALLAERT) Hi, 2012/11/8 Florin Razvan Patan : > Hello, > > > After a talk on the Symfony framework here: > https://github.com/symfony/symfony/issues/5911 > Long story short, the point that @Seldaek suggestion to have a common > interface for loggers > actually makes sense and the best way to have it would be to have PHP > include it by default. > > I'm not sure exactly what amount of work this implies, nor my C skills > are existent, but with > PHP having such an interface available it would help standardize > things in the PHP world. > > Also, I'm not sure if this could be backported into existing PHP 5.3 > or PHP 5.4 versions > but this would make sense to consider it for PHP 5.5. > > What do you guys think? Could this be considered to be included in PHP? What's the benefit of having this made inside PHP itself? It's perfectly possible to share a common interface across projects even if not native to PHP. It's quite easy to create a PECL extension for that, that would suites your need regardless of PHP version, but again, I don't really see the benefit of doing that in C, at the core of PHP.