Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[LOGMGR-150] Add a way to capture stdout and stderr early and write e… #135

Merged
merged 1 commit into from
Aug 18, 2017

Conversation

jamezp
Copy link
Member

@jamezp jamezp commented Aug 17, 2017

…rror messages to stderr.

https://issues.jboss.org/browse/LOGMGR-150

import org.jboss.logmanager.formatters.Formatters;

/**
* A console handler which writes to {@code System.out} by default.
*/
public class ConsoleHandler extends OutputStreamHandler {
private static final OutputStream out = System.out;
private static final OutputStream err = System.err;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep these and just use the StandardOutputStreams.stdxxx?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's no point in storing more objects. Keeping the size smaller is preferred.

@jamezp jamezp merged commit 7581f86 into jboss-logging:master Aug 18, 2017
@jamezp jamezp deleted the LOGMGR-150 branch August 18, 2017 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant