From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-dev+bounces-14714-garchives=archives.gentoo.org@gentoo.org>)
	id 1Fybpx-00073c-7p
	for garchives@archives.gentoo.org; Thu, 06 Jul 2006 21:56:41 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k66LsxeZ002944;
	Thu, 6 Jul 2006 21:54:59 GMT
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k66LnvTU003588
	for <gentoo-dev@lists.gentoo.org>; Thu, 6 Jul 2006 21:49:58 GMT
Received: from localhost (localhost [127.0.0.1])
	by smtp.gentoo.org (Postfix) with ESMTP id 3E30F64330
	for <gentoo-dev@lists.gentoo.org>; Thu,  6 Jul 2006 21:49:57 +0000 (UTC)
Received: from smtp.gentoo.org ([127.0.0.1])
 by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024)
 with ESMTP id 08111-18 for <gentoo-dev@lists.gentoo.org>;
 Thu,  6 Jul 2006 21:49:50 +0000 (UTC)
Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.188])
	by smtp.gentoo.org (Postfix) with ESMTP id 9A87864365
	for <gentoo-dev@gentoo.org>; Thu,  6 Jul 2006 21:49:46 +0000 (UTC)
Received: from [82.82.181.59] (helo=sven.genone.homeip.net)
	by mrelayeu.kundenserver.de (node=mrelayeu4) with ESMTP (Nemesis),
	id 0ML21M-1FybjF2mEw-0005AS; Thu, 06 Jul 2006 23:49:45 +0200
Date: Thu, 6 Jul 2006 23:51:09 +0200
From: Marius Mauch <genone@gentoo.org>
To: gentoo-dev@lists.gentoo.org
Subject: [gentoo-dev] Replacing einfo with elog
Message-ID: <20060706235109.3cc53efc@sven.genone.homeip.net>
Organization: Gentoo
X-Mailer: Sylpheed-Claws 2.3.1 (GTK+ 2.8.19; x86_64-pc-linux-gnu)
Precedence: bulk
List-Post: <mailto:gentoo-dev@lists.gentoo.org>
List-Help: <mailto:gentoo-dev+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-dev+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-dev+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-dev.gentoo.org>
X-BeenThere: gentoo-dev@gentoo.org
Reply-to: gentoo-dev@lists.gentoo.org
Mime-Version: 1.0
Content-Type: multipart/signed; boundary=Sig_CSDQ3rFEDUrOPDxRYxELYPM;
 protocol="application/pgp-signature"; micalg=PGP-SHA1
X-Provags-ID: kundenserver.de abuse@kundenserver.de login:7e6c91d1b14dbccceb2f2166522fa0f6
X-Virus-Scanned: amavisd-new at gentoo.org
X-Spam-Status: No, score=-2.144 required=5.5 tests=[AWL=0.320,
 BAYES_00=-2.599, FORGED_RCVD_HELO=0.135]
X-Spam-Score: -2.144
X-Spam-Level: 
X-Archives-Salt: 6816daa3-8500-410c-9070-2e33b9e473f2
X-Archives-Hash: 6dd4dda7c24d9abfcc4025c239ef2756

--Sig_CSDQ3rFEDUrOPDxRYxELYPM
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

For the impatient reader:
Ebuilds should stop using einfo() for important messages and use elog()
instead.

Rationale:
I assume most of you are already aware of the new elog framework in
portage-2.1 for handling ebuild messages (like sending them by
mail/syslog or just storing them for later review).
This works very well, except that currently if you enable einfo logging
the user will be swamped with many status messages ("updating
foo", "removing bar") that might be interesting when you watch the build
output but are rather useless once the build is done.
To avoid this information overflow einfo messages aren't logged in the
default portage config, but that means that right now users will only
see ewarn and eerror messages and miss some einfos that might be
important.
To fix this problem a new function elog() was added in portage-2.1 to
close the gap between einfo and ewarn. THe reason this wasn't advertised
until now is that it couldn't be used in the tree as the function didn't
exist for people still on portage-2.0. A few minutes ago I committed the
attached patch to base/profile.bashrc so this is no longer an issue
(for 2.0 users elog is merely an alias to einfo). So from now on please
use elog() for any messages the user should read and use einfo() only
for status/progress messages that have no use once the build is
completed.

I'll get the relevant docs updated in the next days.

Marius

--=20
Public Key at http://www.genone.de/info/gpg-key.pub

In the beginning, there was nothing. And God said, 'Let there be
Light.' And there was still nothing, but you could see a bit better.

--Sig_CSDQ3rFEDUrOPDxRYxELYPM
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)

iD8DBQFErYXXWzrL1pM7SNcRAgNYAKCHgjRaKh9+pqLGTfPkPot47n8MrgCfTsgp
hLp0SK48WVHygS2jylW0vkk=
=25KE
-----END PGP SIGNATURE-----

--Sig_CSDQ3rFEDUrOPDxRYxELYPM--
-- 
gentoo-dev@gentoo.org mailing list