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.
1# This sets where to log 2# If you enable this a full log will be created at $PORT_LOGDIR and 3# elogs at $PORT_LOGDIR/elog. Useful to enable when debugging emerge 4# errors. 5# If disabled elog will be stored in /var/log/portage/elog by default. 6#PORT_LOGDIR=/var/log/portage 7 8# This sets what to log 9PORTAGE_ELOG_CLASSES="warn error log info" 10 11# This sets how to log 12# Other options availble see /etc/make.conf.example for details 13PORTAGE_ELOG_SYSTEM="save"
To make reading the data you are logging a little easier you may want to emerge a log viewer.
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
It is worth investigating a method of managing of the files in /var/log/portage
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.