- 
                Notifications
    
You must be signed in to change notification settings  - Fork 31
 
Open
Labels
api: loggingIssues related to the googleapis/java-logging-logback API.Issues related to the googleapis/java-logging-logback API.priority: p3Desirable enhancement or fix. May not be included in next release.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.‘Nice-to-have’ improvement, new feature or different behavior or design.
Description
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>
orisano
Metadata
Metadata
Assignees
Labels
api: loggingIssues related to the googleapis/java-logging-logback API.Issues related to the googleapis/java-logging-logback API.priority: p3Desirable enhancement or fix. May not be included in next release.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.‘Nice-to-have’ improvement, new feature or different behavior or design.