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

Support dot in JSON field key #13

Open
mkende opened this issue Oct 23, 2024 · 0 comments
Open

Support dot in JSON field key #13

mkende opened this issue Oct 23, 2024 · 0 comments

Comments

@mkende
Copy link

mkende commented Oct 23, 2024

Currently, adding something like this in the Log4perl config:

log4perl.appender.DefaultAppender.layout.field.logging.googleapis.com/sourceLocation=%F:%L

will result in a JSON that contains "logging": { "googleapis": { "com/sourceLocation": "..."}} and so it’s not possible to have field names with dot in them.

As far as I know the Log4perl configuration file syntax does not allow to escape dots. This was requested (actually also for use with JSON layout) in this issue but for now the answer was to add the support on the client side.

So would it be possible to add some syntax in this module to support escaping of field names containing dots?

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

No branches or pull requests

1 participant