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

Pattern Layout support #746

Open
mohanar2 opened this issue Apr 20, 2022 · 0 comments
Open

Pattern Layout support #746

mohanar2 opened this issue Apr 20, 2022 · 0 comments
Labels
api: logging Issues related to the googleapis/java-logging-logback API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@mohanar2
Copy link

mohanar2 commented Apr 20, 2022

I am not sure if the current com.google.cloud.logging.logback.LoggingAppender support a Pattern Layout, incase if there's a requirment to mask logs. Have given a sample logback config that does the masking.

<encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
     <layout class="com.test.logback.MaskingPatternLayout">
	 <maskPattern>\"SSN\"\s*:\s*\"(.*?)\"</maskPattern> <!-- SSN JSON pattern -->
	 <pattern>%-5p [%d{ISO8601,UTC}] [%thread] %c: %m%n%rootException</pattern>
      </layout>
</encoder>
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/java-logging-logback API. label Apr 20, 2022
@yoshi-automation yoshi-automation added triage me I really want to be triaged. 🚨 This issue needs some love. labels Apr 20, 2022
@losalex losalex added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p3 Desirable enhancement or fix. May not be included in next release. and removed 🚨 This issue needs some love. labels Jun 27, 2022
@losalex losalex self-assigned this Jun 27, 2022
@yoshi-automation yoshi-automation removed the triage me I really want to be triaged. label Jun 27, 2022
@losalex losalex removed their assignment Jul 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging-logback API. priority: p3 Desirable enhancement or fix. May not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants