Skip to content

google-cloud-logging-logback: Allow user to specify custom LoggingOptions#4729

Merged
olavloite merged 5 commits into
googleapis:masterfrom
olavloite:logback-credentials
Apr 2, 2019
Merged

google-cloud-logging-logback: Allow user to specify custom LoggingOptions#4729
olavloite merged 5 commits into
googleapis:masterfrom
olavloite:logback-credentials

Conversation

@olavloite

Copy link
Copy Markdown
Contributor

Allow users to subclass com.google.cloud.logging.logback.LoggingAppender to specify custom LoggingOptions, such as custom credentials.
Fixes #3215

@olavloite olavloite requested a review from a team March 23, 2019 07:33
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 23, 2019
@codecov

codecov Bot commented Mar 23, 2019

Copy link
Copy Markdown

Codecov Report

Merging #4729 into master will increase coverage by 0.42%.
The diff coverage is 52.94%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #4729      +/-   ##
============================================
+ Coverage     49.65%   50.07%   +0.42%     
- Complexity    22771    22816      +45     
============================================
  Files          2168     2168              
  Lines        214191   216788    +2597     
  Branches      24247    24264      +17     
============================================
+ Hits         106346   108557    +2211     
- Misses        99546    99887     +341     
- Partials       8299     8344      +45
Impacted Files Coverage Δ Complexity Δ
.../google/cloud/logging/logback/LoggingAppender.java 64% <52.94%> (-0.55%) 27 <3> (+3)
...cloud/iam/credentials/v1/IamCredentialsClient.java 46.22% <0%> (-32.26%) 23% <0%> (+3%)
...urityscanner/v1alpha/WebSecurityScannerClient.java 66.5% <0%> (-16.04%) 55% <0%> (+7%)
...oogle/cloud/firestore/v1/FirestoreAdminClient.java 64.6% <0%> (-10.79%) 36% <0%> (+1%)
.../cloud/monitoring/v3/UptimeCheckServiceClient.java 54.45% <0%> (-4.44%) 23% <0%> (ø)
...loud/container/v1/stub/GrpcClusterManagerStub.java 94.89% <0%> (-2.09%) 31% <0%> (ø)
...loud/firestore/v1beta1/stub/GrpcFirestoreStub.java 92.36% <0%> (-2.06%) 17% <0%> (ø)
...gle/cloud/firestore/v1/stub/GrpcFirestoreStub.java 92.36% <0%> (-2.06%) 17% <0%> (ø)
...ogle/cloud/trace/v2/stub/GrpcTraceServiceStub.java 80% <0%> (-2%) 8% <0%> (ø)
...oogle/cloud/firestore/v1beta1/FirestoreClient.java 56.19% <0%> (-1.95%) 31% <0%> (+2%)
... and 73 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 08ca27f...29cac47. Read the comment docs.

@olavloite olavloite force-pushed the logback-credentials branch from d10fb93 to 58ad82b Compare March 26, 2019 10:45
@olavloite olavloite added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 27, 2019
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Mar 27, 2019
@ajaaym

ajaaym commented Mar 27, 2019

Copy link
Copy Markdown
Contributor

WDYT about adding setter method for credential file so user can configure from xml rather than writing code to subclass?

@olavloite

Copy link
Copy Markdown
Contributor Author

WDYT about adding setter method for credential file so user can configure from xml rather than writing code to subclass?

Yes, you are absolutely right. I'll change it to support that.

Comment thread google-cloud-clients/google-cloud-contrib/google-cloud-logging-logback/README.md Outdated
@yoshi-automation yoshi-automation added the 🚨 critical requires immediate fix label Mar 30, 2019
@olavloite olavloite merged commit 4cd6272 into googleapis:master Apr 2, 2019
@olavloite olavloite deleted the logback-credentials branch April 2, 2019 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement. 🚨 critical requires immediate fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants