Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80281 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69236 invoked from network); 8 Jan 2015 17:50:29 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 8 Jan 2015 17:50:29 -0000 Authentication-Results: pb1.pair.com header.from=adam@adamharvey.name; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=adam@adamharvey.name; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain adamharvey.name designates 209.85.213.178 as permitted sender) X-PHP-List-Original-Sender: adam@adamharvey.name X-Host-Fingerprint: 209.85.213.178 mail-ig0-f178.google.com Received: from [209.85.213.178] ([209.85.213.178:63760] helo=mail-ig0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/27-21915-463CEA45 for ; Thu, 08 Jan 2015 12:50:29 -0500 Received: by mail-ig0-f178.google.com with SMTP id b16so4063868igk.5 for ; Thu, 08 Jan 2015 09:50:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adamharvey.name; s=google; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=oaFWJPe3pb6WqeJ1WFUmdhTdz1Bu5hkyY6zC5q2nyaw=; b=ix14TxJDuWTKEWJBnYQUeNo5AyfrHSG8LFPoGCIW0TWfBApvV/CwDieAJQDcU9gUtu /lfAt4JZJFeIzNoZEICjzMHIWbAuliqAr5ELFwkpBXUhAgtPemjG6XmGTkmQp3ATxXG8 5Hi09w1sylPwiDcJ2NZT++hhWErjkOWC3A/ZM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=oaFWJPe3pb6WqeJ1WFUmdhTdz1Bu5hkyY6zC5q2nyaw=; b=Ea7fBw+9skiQasvCjBGFQMS0MqKQ6SDAZ0AhTUdZcSHZOl3R+eWqZFW7oMagc5ykE8 T7/2WBQSBtFIEi9zT9s1UQvRZ3MNIM4hTU7EMBZ6/sTBTcozyppFmze4847ZSqjdSNvU 3h0q/pAHoeWK09gXixh+QhyoOtgrw/rFH8AMlJ6tHZRqhMt1Ss9yzD1GNzR0Ki62Mydi C0wtax5WuXCyoXc6s3XNdqn3BVt1fqBuEyAdKQy4Q8HLn2HVBdN9OSVRG4SB65coF3kt ZsRGIjDAGhvxVf3DOl/bChstiL/7Zbdy4J8FMJBh86wfN4eY10i1mmUh2ik0PxA6IAEy oCTg== X-Gm-Message-State: ALoCoQlTKyg+/i1U+IivxsH9czo++0jOSGp2My7X514tNk4W/NjF1ZQraR+uAj/lpn8j8eqL9g5n X-Received: by 10.42.103.7 with SMTP id k7mr9259957ico.33.1420739425250; Thu, 08 Jan 2015 09:50:25 -0800 (PST) MIME-Version: 1.0 Sender: adam@adamharvey.name Received: by 10.43.112.9 with HTTP; Thu, 8 Jan 2015 09:50:05 -0800 (PST) In-Reply-To: <54AE505B.7090107@fischer.name> References: <54ADACAF.3050609@catseye.org> <1420679648.28792.13.camel@kuechenschabe> <54AE505B.7090107@fischer.name> Date: Thu, 8 Jan 2015 09:50:05 -0800 X-Google-Sender-Auth: dBRP1TP18TkMYPrTDiGOUN74qH8 Message-ID: To: Markus Fischer Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] journald support for Linux systems that use systemd From: aharvey@php.net (Adam Harvey) On 8 January 2015 at 01:39, Markus Fischer wrote: > On 08.01.15 02:14, Johannes Schl=C3=BCter wrote: >> On Wed, 2015-01-07 at 17:01 -0500, Mark Montague wrote: >>> I'd like to start an RFC (see the draft proposal at the end of this >>> message) for adding >>> journald support to PHP on Linux systems that use systemd. This messag= e >>> is to >>> measure reaction to the intended proposal prior to requesting RFC karma= . >> >> I believe the sd_journal_* functions could go in a PECL version, for the >> logging I'd love if logging could be cleanup in a way that we have a >> good internal API for internal use as well as integrates with userlevel >> expectations (-> PSR 3 Log) > > That would have been my reaction too, but looking at the diff it plays > on the same level as the "syslog" logging, i.e. it's integral in the > system in parts where a PECL extensions couldn't reach ... I think that's Johannes's point, though: if we can extend our internal logging API to support these special case log file names in a central place and allow extensions to register new ones, then journald support could be implemented as an extension and we wouldn't have to touch those bits of code. I'd probably be -1 on the patch as it stands (this doesn't need to be in php-src right now; syslog has the advantage of being a standard cross-platform interface, which this isn't), but +1 on doing the work to support that. Adam