accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2372) Use POSIX logger for STDERR and STDOUT
Date Wed, 24 Jun 2015 01:12:42 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14598685#comment-14598685
] 

Christopher Tubbs commented on ACCUMULO-2372:
---------------------------------------------

FWIW, I started looking at modifying the scripts to add the use of {{tee}} and {{logger}}
to keep the current files and to send to the system logs. It's a bit messy with all the file
descriptor redirection to keep {{stdout}} and {{stderr}} separate, but I think it's doable.

> Use POSIX logger for STDERR and STDOUT
> --------------------------------------
>
>                 Key: ACCUMULO-2372
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-2372
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Christopher Tubbs
>              Labels: newbie
>             Fix For: 1.8.0
>
>
> Instead of piping STDOUT and STDERR to *.out and *.err files in our launch scripts, we
should pipe to the POSIX cli logger (/usr/bin/logger) to log to the system logging facility
at the desired log level.
> Incorporating the system logging facilities is useful for system administrators for troubleshooting
and/or auditing. More integration with external logging facilities also means that we reduce
our responsibility to maintain/manage the resulting logs to avoid problems (like filling up
the local file system with logs), deferring that to utilities dedicated to that responsibility.
> The command-line options used for /usr/bin/logger should be enough to associate the logs
with the particular process.
> (NOTE: Log4j can also be configured to use the system log facility, but that should be
done through log4j configuration, with the appropriate log appender.)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message