Elog

Configuring Gentoo to record einfo messages during the emerging of packages

The first file that needs editing is /etc/make.conf. This is where we tell the system what we want to log and where to log it.

Remember to create the required locations (depending on $PORT_LOGDIR)
$mkdir /var/log/portage
$mkdir /var/log/portage/elog

/etc/make.conf

1
2
3
4
5
6
7
8
9
10
11
12
13
# This sets where to log
# If you enable this a full log will be created at $PORT_LOGDIR and
# elogs at $PORT_LOGDIR/elog. Useful to enable when debugging emerge
# errors.
# If disabled elog will be stored in /var/log/portage/elog by default.
#PORT_LOGDIR=/var/log/portage

# This sets what to log
PORTAGE_ELOG_CLASSES="warn error log info"

# This sets how to log
# Other options availble see /etc/make.conf.example for details
PORTAGE_ELOG_SYSTEM="save"

To make reading the data you are logging a little easier you may want to emerge a log viewer.

Emerge elogv - currently only marked as stable on AMD64
$emerge elogv

A user will need to be a member of the portage group to use this.
Hint: On running elogv press h to open the help menu
Hint: elogv can be used to manage/delete the files in /var/log/portage/elog

Note: It is worth investigating a method of managing of the files in /var/log/portage
Note: It seems the content of this location can be deleted if it is not required and will not even be created if $PORT_LOGDIR is disabled.