- Notifications
You must be signed in to change notification settings - Fork 89
Wdt 537 minimize console output #1073
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
9 commits Select commit Hold shift + click to select a range
b8c201c slim down console output with environment variable
CarolynRountree c707559 create separate stdout for summary console
CarolynRountree b2a617e copyright
CarolynRountree 5718d9b intermediate checkin
robertpatrick e6bbdbc Merge branch 'main' into WDT-537-minimize-console-output
robertpatrick c45dfe6 simplifying the logging framework and its configuration
robertpatrick dde5dab adding newlines at the end of the file
robertpatrick fce98e0 adding newlines at the end of the file
robertpatrick 8a7f026 Merge branch 'main' into WDT-537-minimize-console-output
robertpatrick File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
create separate stdout for summary console
- Loading branch information
commit c7075592c56b3b58052ab8f7a50d2b7b0af31516
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions 29 core/src/main/java/oracle/weblogic/deploy/logging/WLSDeploySummaryStdoutHandler.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| package oracle.weblogic.deploy.logging; | ||
| | ||
| import java.util.logging.LogRecord; | ||
| import java.util.logging.StreamHandler; | ||
| | ||
| | ||
| public class WLSDeploySummaryStdoutHandler extends StreamHandler { | ||
| | ||
| public WLSDeploySummaryStdoutHandler() { | ||
| super(); | ||
| setOutputStream(System.out); | ||
| } | ||
| | ||
| @Override | ||
| public void publish(LogRecord record) { | ||
| super.publish(record); | ||
| flush(); | ||
| } | ||
| | ||
| /** | ||
| * Override <tt>StreamHandler.close</tt> to do a flush but not | ||
| * to close the output stream. That is, we do <b>not</b> | ||
| * close <tt>System.out</tt>. | ||
| */ | ||
| @Override | ||
| public void close() { | ||
| flush(); | ||
| } | ||
| } |
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing newline.