Lines 313-342
Link Here
|
313 |
<ul> |
313 |
<ul> |
314 |
<li> |
314 |
<li> |
315 |
<c>save</c>: This saves one log per package in |
315 |
<c>save</c>: This saves one log per package in |
316 |
<path>$PORT_LOGDIR/elog</path>, or <path>/var/log/portage/elog</path> if |
316 |
<path>$PORT_LOGDIR/elog/</path>, or <path>/var/log/portage/elog/</path> |
317 |
$PORT_LOGDIR is not defined. |
317 |
if $PORT_LOGDIR is not defined |
318 |
</li> |
318 |
</li> |
319 |
<li> |
319 |
<li> |
320 |
<c>custom</c>: Passes all messages to a user-defined command in |
320 |
<c>custom</c>: Passes all messages to a user-defined command in |
321 |
$PORTAGE_ELOG_COMMAND; this will be discussed later. |
321 |
$PORTAGE_ELOG_COMMAND; this will be discussed later |
322 |
</li> |
322 |
</li> |
323 |
<li> |
323 |
<li> |
324 |
<c>syslog</c>: Sends all messages to the installed system logger. |
324 |
<c>syslog</c>: Sends all messages to the installed system logger |
325 |
</li> |
325 |
</li> |
326 |
<li> |
326 |
<li> |
327 |
<c>mail</c>: Passes all messages to a user-defined mailserver in |
327 |
<c>mail</c>: Passes all messages to a user-defined mailserver in |
328 |
$PORTAGE_ELOG_MAILURI; this will be discussed later. The mail features |
328 |
$PORTAGE_ELOG_MAILURI; this will be discussed later. The mail features |
329 |
of elog require >=<c>portage-2.1.1</c>. |
329 |
of elog require >=<c>portage-2.1.1</c> |
330 |
</li> |
330 |
</li> |
331 |
<li> |
331 |
<li> |
332 |
<c>save_summary</c>: Similar to <c>save</c>, but it merges all messages |
332 |
<c>save_summary</c>: Similar to <c>save</c>, but it merges all messages |
333 |
in <path>$PORT_LOGDIR/elog/summary.log</path>, or |
333 |
in <path>$PORT_LOGDIR/elog/summary.log</path>, or |
334 |
<path>/var/log/portage/elog/summary.log</path> if $PORT_LOGDIR is not |
334 |
<path>/var/log/portage/elog/summary.log</path> if $PORT_LOGDIR is not |
335 |
defined. |
335 |
defined |
336 |
</li> |
336 |
</li> |
337 |
<li> |
337 |
<li> |
338 |
<c>mail_summary</c>: Similar to <c>mail</c>, but it sends all messages |
338 |
<c>mail_summary</c>: Similar to <c>mail</c>, but it sends all messages |
339 |
in a single mail when emerge exits. |
339 |
in a single mail when emerge exits |
340 |
</li> |
340 |
</li> |
341 |
</ul> |
341 |
</ul> |
342 |
</li> |
342 |
</li> |
Lines 355-361
Link Here
|
355 |
<li> |
355 |
<li> |
356 |
PORTAGE_ELOG_MAILURI: This contains settings for the <c>mail</c> module |
356 |
PORTAGE_ELOG_MAILURI: This contains settings for the <c>mail</c> module |
357 |
such as address, user, password, mailserver, and port number. The default |
357 |
such as address, user, password, mailserver, and port number. The default |
358 |
setting is "root@localhost localhost". |
358 |
setting is "root@localhost localhost" |
359 |
</li> |
359 |
</li> |
360 |
<li> |
360 |
<li> |
361 |
Here's an example for an smtp server that requires username and |
361 |
Here's an example for an smtp server that requires username and |
Lines 370-382
Link Here
|
370 |
</li> |
370 |
</li> |
371 |
<li> |
371 |
<li> |
372 |
PORTAGE_ELOG_MAILFROM: Allows you to set the "from" address of log mails; |
372 |
PORTAGE_ELOG_MAILFROM: Allows you to set the "from" address of log mails; |
373 |
defaults to "portage" if unset. |
373 |
defaults to "portage" if unset |
374 |
</li> |
374 |
</li> |
375 |
<li> |
375 |
<li> |
376 |
PORTAGE_ELOG_MAILSUBJECT: Allows you to create a subject line for log |
376 |
PORTAGE_ELOG_MAILSUBJECT: Allows you to create a subject line for log |
377 |
mails. Note that you can make use of two variables: ${PACKAGE} will display |
377 |
mails. Note that you can make use of two variables: ${PACKAGE} will display |
378 |
the package name and version, while ${HOST} is the fully qualified domain |
378 |
the package name and version, while ${HOST} is the fully qualified domain |
379 |
name of the host Portage is running on. |
379 |
name of the host Portage is running on |
380 |
</li> |
380 |
</li> |
381 |
<li> |
381 |
<li> |
382 |
Here's one possible use: |
382 |
Here's one possible use: |