ppkarwasz commented on issue #1479:
URL: 
https://github.com/apache/logging-log4j2/issues/1479#issuecomment-1549474786

   @robert-gdv,
   
   Thank you for your report. Actually the key used for a layout can be 
**arbitrary** (e.g. `!@#$%^&*()`) as long as it does not contain a dot `.` 
character.
   
   When binding configuration values to JavaBean properties, Log4j:
   
    * binds simple properties (`int`, `String`, etc.) **by name**. Therefore 
you **need** to use the `target` key to specify the target of a console 
appender,
    * binds complex properties **by type**. That is why 
`appender.console.!@#$%^&*().type = JsonTemplateLayout` will work without any 
problems.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to