-
Notifications
You must be signed in to change notification settings - Fork 77
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
Adding Layout to logback-ecs-encoder #144
Comments
There is encode method on EcsEncoder and this method creates the log message to be written to the file.
If we add Layout field in EcsEncoder class, we can use this in encode method.
So, we can use our custom Layout or predefined Layout.
Here is my custom Layout.
|
created pr #145 |
Any chance such a function will be added? Or am I maybe missing something to achieve the above with the current encoder or available resources? |
@Tokimimo IMO it works as expected after recent changes in #145:
|
This was closed by #220 which was built upon #145 and has since been merged. @felixbarny and @mgreau we should close this issue now that it's been resolved. |
If there is an error in incoming requests, I am logging this request and some requests may contain sensitive information, such as password.
There is LayoutWrappingEncoder encoder on logback and I am able to add Layout that.
payload={
"newPassword": "********",
"oldPassword": "********",
"smsCode": "123456"
}
But, I am using EcsEncoder in production environment, but there is no option to add Layout in this encoder. So, I can't mask fields. Is there anyway to do that or is there any plan to add this?
The text was updated successfully, but these errors were encountered: