Skip to content

Log Message Formatting  #52

@sreyasvpariyath

Description

@sreyasvpariyath

Hi
I am using ch.qos.logback.more.appenders.FluencyLogbackAppender along with Fluency, I was wondering is there is any way to format the log message before it gets emitted.? I would need to mask certain fields.

<encoder>
			<charset>UTF-8</charset>
			<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS,UTC} UTC: ${PID:- }
				[%15.15thread] %5p [%X{traceId}/%X{spanId}] - %-40.40logger{39} :
				%replace(%.5000msg%n ){'[Pp]assword*([^,]*),', 'password=xxxx,'}%n
			</pattern>
		</encoder>

I tried the above config in my logback xml, but could not find any difference. any suggestion.?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions