You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2021/08/30 15:07:57 UTC

[GitHub] [logging-log4j2] yaojingguo commented on pull request #571: doc: fix typos

yaojingguo commented on pull request #571:
URL: https://github.com/apache/logging-log4j2/pull/571#issuecomment-908422218


   >  For instance, linked statements apply to both eventTemplate and eventTemplateUri, hence the eventTemplate[Uri].
   
   @vy Could you please kindly show me how to use `[Uri]`? For example,  what value should I pass to `Uri ` in `log4j.layout.jsonTemplate.eventTemplate[Uri]`?
   
   https://logging.apache.org/log4j/2.x/manual/json-template-layout.html has:
   
   ![截屏2021-08-30 下午11 03 24](https://user-images.githubusercontent.com/516386/131360733-b8f7cfeb-4fe5-462d-941e-21de063772bc.png)
   
   But `JsonTemplateLayoutDefaults` also has the following code:
   ```
       public static String getEventTemplateUri() {
           return PROPERTIES.getStringProperty(
                   "log4j.layout.jsonTemplate.eventTemplateUri",
                   "classpath:EcsLayout.json");
       }
   ```
   


-- 
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-unsubscribe@logging.apache.org

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