accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Tubbs (JIRA)" <>
Subject [jira] [Commented] (ACCUMULO-2372) Use POSIX logger for STDERR and STDOUT
Date Fri, 14 Feb 2014 19:58:20 GMT


Christopher Tubbs commented on ACCUMULO-2372:

That might be fair, but... /usr/bin/logger is POSIX. It's definitely there on Macs, and it's
provided by the util-linux package on RPM-based systems.

This is the same package that provides 'su', 'mount', and 'login'. It's also the same package
that provides 'kill', which we have no problem assuming exists.

So, if it's not there, I'd be *very* surprised as you'd probably be running some Linux-From-Scratch
thing which is deliberately non-POSIX... and if that's the case, there's no telling how our
scripts would behave on those systems... so, maybe it's not worth maintaining the ability
to fall back to such fringe cases?

> Use POSIX logger for STDERR and STDOUT
> --------------------------------------
>                 Key: ACCUMULO-2372
>                 URL:
>             Project: Accumulo
>          Issue Type: Improvement
>            Reporter: Christopher Tubbs
>             Fix For: 1.7.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

View raw message