Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:118923 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 21828 invoked from network); 31 Oct 2022 10:16:45 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Oct 2022 10:16:45 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id B1C4F18005C for ; Mon, 31 Oct 2022 03:16:43 -0700 (PDT) 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_H3,RCVD_IN_MSPIKE_WL,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-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (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 ; Mon, 31 Oct 2022 03:16:43 -0700 (PDT) Received: by mail-pl1-f178.google.com with SMTP id c2so10303420plz.11 for ; Mon, 31 Oct 2022 03:16:43 -0700 (PDT) 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=wraeppQQqyJ0Nzpv8ZzOC32Kc6xk/mYWlF+724XDmnc=; b=FPGuSpJq6cTtZ1n3hotzL7x5ZtJnlfSgohjpFS5ThGr0kEk+DHRR5txpQJmnMN8yLM udFnN+hLHg7IAKqh6kV09C6Pqs1DIZGuyMmQzkAWM6ceUlZsJZzP2M6JQD9NmJcieedx pYzQMsmeeDbi/JrpU96gyLLcgGvy5aCLPZrog= 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=wraeppQQqyJ0Nzpv8ZzOC32Kc6xk/mYWlF+724XDmnc=; b=mlW7yIv9O14ZKgm7Ohut6G5PS33FbMTFC7XMEqgQSeuGvnzPFKT3Y4ubpGz+HJvax+ HoUzikxRGxRNV8PGpCYYDGSRl/3JyR665e/mo1/4K/GNYXCKP3us/X4uQgCvYPWVg5/Z e0lMEMHYJhte5Mkt1/ERBjXu7NI005qrWHr3BhJR14LNlHwtv/Hq4CemZA1JiXBeuOQM PPgtYk6j9oOhdJbGC1QFEMfUN7RCAVgH3xF4DqwvTlLdcdsRD92P9gKiBUZgMC5NXVFM wQngNR8t6vSEbNYXG2Ss1dwmc//dgqHN4h4fZx8KH2izjhu963hZ9KmbN7uHpdGpZk9a NlxA== X-Gm-Message-State: ACrzQf0pKkPPW9WpoesDAbjmrDNnyB3zmrjKkiK9XlBifaZhmX74fsES MpQK9SEFE3mmsogiffR93+Z5cTvgcMdgd+K3lUPFoA== X-Google-Smtp-Source: AMsMyM6GnVL5O2ZlbJVNPaWYRB3/J9OJVRlwKiAq3MK5YgjSobHJFrH8FRIveqkdAX2TtVK5Ohe+TBTmhk/pINNRsRs= X-Received: by 2002:a17:902:c40a:b0:186:ba20:76fa with SMTP id k10-20020a170902c40a00b00186ba2076famr13493316plk.55.1667211402170; Mon, 31 Oct 2022 03:16:42 -0700 (PDT) MIME-Version: 1.0 References: <42A5DAC6-253E-478D-808C-36690FA88315@gmail.com> <46b289c4-9255-ad66-3410-46b19fc91bf6@gmail.com> In-Reply-To: <46b289c4-9255-ad66-3410-46b19fc91bf6@gmail.com> Date: Mon, 31 Oct 2022 10:16:31 +0000 Message-ID: To: Rowan Tommins Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary="0000000000006467e305ec51e7e6" Subject: Re: [PHP-DEV] Microseconds to error log From: craig@craigfrancis.co.uk (Craig Francis) --0000000000006467e305ec51e7e6 Content-Type: text/plain; charset="UTF-8" On Sun, 30 Oct 2022 at 17:42, Rowan Tommins wrote: > In case of any confusion, I think this should be configurable as > "include microseconds: on / off", not configurable as "enter date format". > Any reason it can't be configured to use ISO 8601? Apache 2.4 allows you to use `LogFormat "... [%{%Y-%m-%dT%H:%M:%S}t.%{msec_frac}t] ..." format_name` https://httpd.apache.org/docs/trunk/mod/mod_log_config.html And MySQL uses "YYYY-MM-DDThh:mm:ss.uuuuuu": https://dev.mysql.com/doc/refman/8.0/en/error-log-format.html#error-log-format-system-variables When I'm doing some quick log checking, I often forget that PHP uses a different date format... admittedly, it can help having the month spelled out, so no one accidentally thinks it's the American format :-) Craig --0000000000006467e305ec51e7e6--