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

Log Message Formatting #52

Open
sreyasvpariyath opened this issue Jul 19, 2020 · 0 comments
Open

Log Message Formatting #52

sreyasvpariyath opened this issue Jul 19, 2020 · 0 comments

Comments

@sreyasvpariyath
Copy link

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.?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants