From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31154 invoked from network); 20 Jan 2023 23:15:46 -0000 Received: from minnie.tuhs.org (50.116.15.146) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2023 23:15:46 -0000 Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 5B49942554; Sat, 21 Jan 2023 09:15:42 +1000 (AEST) Received: from mail-vs1-f41.google.com (mail-vs1-f41.google.com [209.85.217.41]) by minnie.tuhs.org (Postfix) with ESMTPS id 5EF7F42551 for ; Sat, 21 Jan 2023 09:15:37 +1000 (AEST) Received: by mail-vs1-f41.google.com with SMTP id 3so7300453vsq.7 for ; Fri, 20 Jan 2023 15:15:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=07enUSR1HqEjhXJQa3Sqi00XToqqXzv6myfGsjbR0yA=; b=j9w7KrNK2U1grtK4X+6VH5+SjG5+ymKEE4+R46CJ8rX8DB1wqysBKBGp5Hp3K+qOJs 1gHBVfHoHN1BQQeBZDO4vOWGvpK/GBz3vke74V4BOONdjtJD8eDKmAhg5SNoYbYWKuOq MCgIhU6M9unW0woYEicKkPCKoH7B3dB0igIJUqMmyg8s5kiQo0UwQu+8zOHHANigtjDR OrykBSjRu9E5GzR5bpOKIWiIalFZNU84zZMUe8W718jnvmkmdgv1BtfFhLCitscnjtMi kulBRGR0W+j9vNM7QJCIDBtYGcC/4f4dEGOt8dsEd6IKWi//d3WjkR/v8H3NDvmSA2LD 1FoA== 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=07enUSR1HqEjhXJQa3Sqi00XToqqXzv6myfGsjbR0yA=; b=sfRCdBO69w+5CXqP6i/mZ8s85js8GmwOyH99m3M6tkphMtOsQb9zpCkC7BhaC16j4T NfgERsjt8VzvKgFJtel135P+SJZzRsh9pgKzQpVaPMi+ZZPE0dzpHhhz8MUaGJttY7Lq /RHlhg7CzSRgjtv3jRiMjdhYF1E34QY17DA40T1Q3tJPaylOq3jm3joqBlgsNx+8lzG6 ty7w0PBnbwg0BH+QRmRW6H3dasTyIrI+69R2XODeF9reOqv70mKvEj4AJxW+50Q3wz5X XT2KLMUwA+EDP/Xj8K1kUfxAMaRgAY/ZBcHhVk/B7q5GrLDZgP7STXjZzOTx64/03tH/ 7AJQ== X-Gm-Message-State: AFqh2kqsAK2T7TaS9luO9tt166fWpd6OSVox04kfE/q1GtqKDVgFZGSJ 13cmoQIdJPnklheL+Ma7gyYCyP6+LVIuwzCtnDg= X-Google-Smtp-Source: AMrXdXug3153Lu3LxHI6ZQjQWSJGnWqjsLZzzhL3xFsAF9ogK3jQ8v/sB2chIKlitXuXB403xB6TzvnZGF3iFpuoQ04= X-Received: by 2002:a67:fd8b:0:b0:3d0:93b7:fab7 with SMTP id k11-20020a67fd8b000000b003d093b7fab7mr2295230vsq.56.1674256476326; Fri, 20 Jan 2023 15:14:36 -0800 (PST) MIME-Version: 1.0 References: <20230120231107.GB12196@mcvoy.com> In-Reply-To: <20230120231107.GB12196@mcvoy.com> From: Rob Pike Date: Sat, 21 Jan 2023 10:14:25 +1100 Message-ID: To: Larry McVoy Content-Type: multipart/alternative; boundary="00000000000088cd9505f2ba3693" Message-ID-Hash: AWXDXR6K4ZTL5F34RBPZ7DWRFRSYCPPG X-Message-ID-Hash: AWXDXR6K4ZTL5F34RBPZ7DWRFRSYCPPG X-MailFrom: robpike@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tuhs.tuhs.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Eunuchs Hysterical Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: FD 2 List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --00000000000088cd9505f2ba3693 Content-Type: text/plain; charset="UTF-8" Yes, but everyone adds the flag --alsologtostderr -rob On Sat, Jan 21, 2023 at 10:11 AM Larry McVoy wrote: > On Sat, Jan 21, 2023 at 09:56:16AM +1100, Rob Pike wrote: > > I will let others respond with specifics, but that was there in v5 at > least. > > > > One of the many shocks I had on arrival at Google was that in production, > > fd2 was pretty much standard output, as all the logging went there. And > > since our machines were still 32-bit CPUs then, it was common to overflow > > the offset because the logging output was, well, not parsimonious. It > felt > > like I'd entered bizarro world, until I realized that few anywhere really > > knew how Unix was supposed to be used. And they still don't, and never > will. > > Isn't there a logging API complete with the ability to centralize the logs? > --00000000000088cd9505f2ba3693 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes, but everyone adds the flag --alsologtostderr

-rob

<= /div>
O= n Sat, Jan 21, 2023 at 10:11 AM Larry McVoy <lm@mcvoy.com> wrote:
On Sat, Jan 21, 2023 at 09:56:16AM +1100, Rob Pike wrote:<= br> > I will let others respond with specifics, but that was there in v5 at = least.
>
> One of the many shocks I had on arrival at Google was that in producti= on,
> fd2 was pretty much standard output, as all the logging went there. An= d
> since our machines were still 32-bit CPUs then, it was common to overf= low
> the offset because the logging output was, well, not parsimonious. It = felt
> like I'd entered bizarro world, until I realized that few anywhere= really
> knew how Unix was supposed to be used. And they still don't, and n= ever will.

Isn't there a logging API complete with the ability to centralize the l= ogs?
--00000000000088cd9505f2ba3693--