From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?B?TWF0w7rFoQ==?= Goljer Newsgroups: gmane.emacs.devel Subject: Re: New (only?) extensible logging package for Emacs Date: Mon, 13 Mar 2023 14:23:16 +0100 Message-ID: <87v8j4pyyj.fsf@gmail.com> References: <875yb7tnyd.fsf@gmail.com> <1624013056.316850.1678548472770@office.mailbox.org> <87zg8hpytt.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27901"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Thomas Koch , emacs-devel@gnu.org To: Ruijie Yu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 13 15:35:10 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pbjGW-00073k-OW for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Mar 2023 15:35:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pbjFp-0005dx-RW; Mon, 13 Mar 2023 10:34:25 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pbi94-00089w-Ep for emacs-devel@gnu.org; Mon, 13 Mar 2023 09:23:22 -0400 Original-Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pbi92-0006HO-Vb for emacs-devel@gnu.org; Mon, 13 Mar 2023 09:23:22 -0400 Original-Received: by mail-ed1-x52d.google.com with SMTP id fd5so14763919edb.7 for ; Mon, 13 Mar 2023 06:23:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678713798; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=7W/HMkwXekicD6p7TTQM3FUzeaxoYc1T0uGJ6LySJ1w=; b=e66OVik1J/Bdw8EIGGMVeZNb1DgOUM17Ef6r8w8XPH8kvju1ywNdErovLLN3CvZjdL VxryMHSxAa1cHR5VFT+/9iHZv48mHDgk/PMIzopZFHN2qSWnNXSs9AUc8+degjgdOnGZ zF5wsSxQiag9Yf4hOxStCmOWMLSU4goVdWn1d7YaL1cOsir7SG78pPS/DVtvCNgZPln5 kQ/HL5Ixi5E+Pzy0C3h7i1Hd2GqwdK/4rwoHVFZNpffy2o/GT8oOFyncw50c914N3+k1 peSx2/Npo0XekjK8jsTp9BOK1qo//2Pcd0yXi8Ddv6fBJtO9E+e/pVCZBwgsbWF4fu5C T4Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678713798; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7W/HMkwXekicD6p7TTQM3FUzeaxoYc1T0uGJ6LySJ1w=; b=lRLlawPOEPxhS7zSxf4Rs/7qsqmaZxlyYUaDvv9gy/t+S9YNHfsjiQCm2hAcweooX3 EjlKRqp+31+KoAQE3yNX/h0L2PD/pzvTg4rMCvx24YudRaqS/YwGQdD6sD8AitCmnM0+ N8d/MPIer/Q7dnkwTSbLqyU98nS5KnQVnnUJY2oltEiepDYywMAFjgpbZmd181CMCulQ 00E+Oa/er+idkMTDIdDTvWItscLY+wt//TniYJdPnea0sdhl9TteCssNE9F8HOiA+sjk bToatO6uxCShW9EWfBKF6kbuDE6DS7Sh0Z6t9QtL9FuOA+MEJ+wcN9C3YjBUyyNtHpwF jb4A== X-Gm-Message-State: AO0yUKVpA+/SHswN9U94k6EsYz92MR2MoE31dk2kUaFKkxH66ySHx6II cdBFffmVuN6RLc9NGSY7neRRgt8grZ971w== X-Google-Smtp-Source: AK7set+OtXiIFBcbLoY5k+3j6TSROQFbF68x64JpfHKWVFEQkV0ppHjoWpHk+kD2lUcJJogKZ2vCBg== X-Received: by 2002:aa7:c2da:0:b0:4bf:33e8:21ff with SMTP id m26-20020aa7c2da000000b004bf33e821ffmr28379853edp.30.1678713798601; Mon, 13 Mar 2023 06:23:18 -0700 (PDT) Original-Received: from parmenides (ip-89-177-55-133.bb.vodafone.cz. [89.177.55.133]) by smtp.gmail.com with ESMTPSA id d6-20020a50f686000000b004bef1187754sm1640085edn.95.2023.03.13.06.23.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Mar 2023 06:23:17 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=matus.goljer@gmail.com; helo=mail-ed1-x52d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 13 Mar 2023 10:34:23 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304392 Archived-At: >>> In my case I'd love to feed logs into journald. >> >> What unit would it log to though? Or can journald also ingest logs for >> non-unit source? Since I imagine not many people run Emacs as a systemd >> service. I'm not very knowledgable about this stuff :grin: > > IIUC, Emacs may connect(2) to the unix socket "/dev/log" on systmed > systems for journald integration. > Cool, I just tried echo 'test' | nc -u -U /dev/log and it pops up in `journalctl`. I'll add an appender for this, should be somewhat simple. --=20 Best regards, Mat=C3=BA=C5=A1 Goljer