Important: You are required to change your passwords used for Gentoo services and set an email address for your Wiki account if you haven't done so. See the full announcement and Wiki email policy change for more information.

portage log

From Gentoo Wiki
Jump to: navigation, search

When using emerge for building a package, it is not uncommon to notice messages coming from Portage itself. Since they may contain important informations from Gentoo developers it's a good idea to read them, but often this is not immediately possible because they rapidly scroll out of the screen. This can be easily solved if you enable a Portage feature called elog, whose purpose is to save messages to disk for a later review.

elog should be enabled by editing /etc/portage/make.conf.

The first thing to do is to choose a directory for storing Portage log files. By default, Portage uses /var/log/portage:

File/etc/portage/make.conf

PORT_LOGDIR="/var/log/portage"

Then you should select which kind of informations should be logged. Possible values are info, warn, error, log and qa:

File/etc/portage/make.conf

PORTAGE_ELOG_CLASSES="log warn error"

Now you should tell Portage how log should be handled. You can either save them to disk or mail them to some recipient, or both. If you just want to save them, you should enable the save module only:

File/etc/portage/make.conf

PORTAGE_ELOG_SYSTEM="save"

For mailing logs to some recipient, you should enable the mail module instead, and set some additional variables, too. Please read /usr/share/portage/config/make.conf.example for details.

External resources