Elog¶
- Date
2007-05-22 22:27
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.
mkdir /var/log/portage
mkdir /var/log/portage/elog
/etc/make.conf
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.
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.