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

Allow logging prefix to be disabled #876

Closed
wants to merge 1 commit into from

Conversation

scoplin
Copy link
Contributor

@scoplin scoplin commented Oct 7, 2017

Adds a new "disablePrefix" option to the log configuration that will
cause container logs to be presented without a prefix.

Signed-off-by: Scott Coplin [email protected]

Adds a new "disablePrefix" option to the log configuration that will
cause container logs to be presented without a prefix.

Signed-off-by: Scott Coplin <[email protected]>
@codecov
Copy link

codecov bot commented Oct 7, 2017

Codecov Report

Merging #876 into master will increase coverage by 0.05%.
The diff coverage is 88.23%.

@@             Coverage Diff              @@
##             master     #876      +/-   ##
============================================
+ Coverage     50.46%   50.51%   +0.05%     
- Complexity     1180     1183       +3     
============================================
  Files           137      137              
  Lines          7033     7045      +12     
  Branches        935      936       +1     
============================================
+ Hits           3549     3559      +10     
- Misses         3177     3178       +1     
- Partials        307      308       +1
Impacted Files Coverage Δ Complexity Δ
...ava/io/fabric8/maven/docker/log/LogOutputSpec.java 45.58% <100%> (ø) 9 <2> (+1) ⬆️
...aven/docker/config/handler/property/ConfigKey.java 100% <100%> (ø) 7 <0> (ø) ⬇️
...config/handler/property/PropertyConfigHandler.java 90.54% <100%> (+0.14%) 43 <0> (+1) ⬆️
.../fabric8/maven/docker/config/LogConfiguration.java 91.48% <100%> (+1.24%) 9 <2> (+1) ⬆️
...fabric8/maven/docker/log/LogOutputSpecFactory.java 66.66% <33.33%> (-3.93%) 5 <1> (ø)

rhuss added a commit to rhuss/docker-maven-plugin that referenced this pull request Nov 4, 2017
This replaces fabric8io#876 as its a bit more flexible and does not require a new configuration option.
You can use now a prefix `%z` for an empty string
@rhuss
Copy link
Collaborator

rhuss commented Nov 4, 2017

Since I'm not super keen to introduce an extra option only for disabling the prefix, I allowed now to use parameters in the prefix. See #890 for the corresponding PR.

For your use case, just use %z as prefix which is just an empty string. 'hope this is ok for you, so I'm closing this PR for now.

@rhuss rhuss closed this Nov 4, 2017
rhuss added a commit to rhuss/docker-maven-plugin that referenced this pull request Nov 4, 2017
This replaces fabric8io#876 as its a bit more flexible and does not require a new configuration option.
You can use now a prefix `%z` for an empty string
@scoplin
Copy link
Contributor Author

scoplin commented Nov 4, 2017

Yup, that works just fine too. Tried it out on the v0.23.0 tag and behaved just fine. Thanks a lot!

@scoplin scoplin deleted the logging_prefix branch November 4, 2017 16:42
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.

2 participants