Skip to content

Pattern Layout support #746

@mohanar2

Description

@mohanar2

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> 

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: loggingIssues related to the googleapis/java-logging-logback API.priority: p3Desirable enhancement or fix. May not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions