Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:119033 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 81061 invoked from network); 26 Nov 2022 09:44:49 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 26 Nov 2022 09:44:49 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 75E89180211 for ; Sat, 26 Nov 2022 01:44:45 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f176.google.com (mail-pf1-f176.google.com [209.85.210.176]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Sat, 26 Nov 2022 01:44:44 -0800 (PST) Received: by mail-pf1-f176.google.com with SMTP id b4so6089189pfb.9 for ; Sat, 26 Nov 2022 01:44:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=craigfrancis.co.uk; s=default; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=d3vQ1MZ/QWf4eef0TLpd1i6nj2su21Ty6ELsXI1cpJ0=; b=kA+jweMnbKhJBPMF7/TE0/zU52BaC6osRiEAhrcNGoiljWduPcpXDKLt43f8WxOHTJ KoSM1lc/zWN5UiiWolH7lWKeweQmEZUbChu/p6q1C574FKyFJ766dOxX173LCuYNxYBG HNw3jS8y4W99jYPByTcB7X9aeNiUOrXZTlkOs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=d3vQ1MZ/QWf4eef0TLpd1i6nj2su21Ty6ELsXI1cpJ0=; b=HAhuMEnyazTNVHj6AyIbI9RF+MbSQchQ21SvZDoA3C1ZYZiV3rHMy3MsHTM6f4cpfH PU26X6VX6uUnXdA37C4cjLcKVZNXlWMGZOqGCTmIUZvui1MHa6ggr4knXhkbfvHa/GOn dHOBj+7Uaeawus77VHIOO7wzYVm97f68ZNimV4wblkmPoqsLCrcRAGZRWphpviudiVO3 PZ0+2vc3k11hA10DrFeWMRDzhJNHK9yk3Kp/fwOsAnIMuirDRkhiJhr9Wt2y7Ybhwnwt SK3Qm/tvYpz6pMJrPEijATjreg2OidwH0ISxZYqk6lITsBsUA8XM4wmVAkmW9i2GU48M rOCQ== X-Gm-Message-State: ANoB5pnSRlLY/KRlyDzvoGH2UiyZqUxhC4Hi64qoLzypbS7tXiX1Fowm pyDFy0NTxiYjlE9hMJhfuiqKUwmWMli4cQsc1FC34w== X-Google-Smtp-Source: AA0mqf63eafvK0jt+gcFj/S88UaS6dQVpXLPabq0Nap3ddX7NvGO9VvlyxRnj3X9JVAJCc/fPm1kKHocdVjZco0r680= X-Received: by 2002:a63:d117:0:b0:476:c781:d3ae with SMTP id k23-20020a63d117000000b00476c781d3aemr20286158pgg.183.1669455883611; Sat, 26 Nov 2022 01:44:43 -0800 (PST) MIME-Version: 1.0 References: <42A5DAC6-253E-478D-808C-36690FA88315@gmail.com> <46b289c4-9255-ad66-3410-46b19fc91bf6@gmail.com> In-Reply-To: Date: Sat, 26 Nov 2022 09:44:32 +0000 Message-ID: To: Mikhail Galanin Cc: Rowan Tommins , internals@lists.php.net Content-Type: multipart/alternative; boundary="000000000000e94a0f05ee5c7c6b" Subject: Re: [PHP-DEV] Microseconds to error log From: craig@craigfrancis.co.uk (Craig Francis) --000000000000e94a0f05ee5c7c6b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Fri, 25 Nov 2022 at 14:01, Mikhail Galanin < mikhail.galanin@team.bumble.com> wrote: > 2. The INI-thing. When initially I mentioned being configurable, I > realised that it could've been perceived in many different ways: > > - we can enable/disable the microseconds > - we can choose from a pre-defined list of formats (PHP7, PHP7 + msec, > PHP7+ usec, ISO8601, ISO8601+usec, etc...) > - we also might want to use an Apache/HTTPd-like approach, e.g. > "[${time:format} $pid $hostname] $error_message" > > Or, once we enable microseconds, we can switch to the ISO format, for > example (no, I don't like this approach but if we change the setting > name it might be not that confusing) > > What do you think? While I=E2=80=99d personally like a bit more than microseconds on/off (just= so I can use the same format as other logs)=E2=80=A6 I think Rowan has the stron= ger case on not overcomplicating the code, while still addressing the original issue= . And I=E2=80=99m not going to comment on naming, I=E2=80=99ve got my own I c= annot decide on (literal, vs literal-string, vs LiteralString). Craig --000000000000e94a0f05ee5c7c6b--