[
https://issues.apache.org/jira/browse/LOG4J2-2484?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16659898#comment-16659898
]
Robert Ross commented on LOG4J2-2484:
-------------------------------------
For more clarification on POSIX guidance:
[http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap01.html#tag_17_04]
{panel:title=STDERR}
The STDERR section describes the standard error output of the utility. Only
those messages that are purposely sent by the utility are described.
Use of a terminal for standard error may cause any of the standard utilities
that write standard error output to stop when used in the background. For this
reason, applications should not use interactive features in scripts to be
placed in the background.
The format of diagnostic messages for most utilities is unspecified, but the
language and cultural conventions of diagnostic and informative messages whose
format is unspecified by this volume of POSIX.1-2017 should be affected by the
setting of _LC_MESSAGES_ and ^[XSI]^
!http://pubs.opengroup.org/onlinepubs/9699919799/images/opt-start.gif!
_NLSPATH._ !http://pubs.opengroup.org/onlinepubs/9699919799/images/opt-end.gif!
The specified standard error output of standard utilities shall not depend on
the existence or value of the environment variables defined in this volume of
POSIX.1-2017, except as provided by this volume of POSIX.1-2017.
{color:#333333}Default Behavior: When this section is listed as "The standard
error shall be used only for diagnostic messages.", it means that, unless
otherwise stated, +{color:#14892c}*the diagnostic messages shall be sent to the
standard error only when the exit status indicates that an error
occurred*{color}+ and the utility is used as described by this volume of
POSIX.1-2017.{color}
When this section is listed as "Not used.", it means that the standard error
shall not be used when the utility is used as described in this volume of
POSIX.1-2017.
{panel}
> Allow setting of output stream on StatusLogger
> ----------------------------------------------
>
> Key: LOG4J2-2484
> URL: https://issues.apache.org/jira/browse/LOG4J2-2484
> Project: Log4j 2
> Issue Type: Improvement
> Components: Core
> Reporter: Robert Ross
> Priority: Minor
> Labels: StatusLogger, debugging
>
> The StatusLogger internally uses a SimpleLogger. SimpleLogger offers the
> ability to control the output stream, but StatusLogger encapsulates and hides
> this capability, always using System.err as the output stream.
> It would be useful to expose this option so that the API offers some control
> over the output stream used by StatusLogger.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)