JsonTemplateLayout eventTemplateUri from spring cloud config #2536
-
I have configured my application to log as JSON using log4j2 configuration:
at the moment I'm using a file in the classpath (as configured on property Configuration.Appenders.Console.JsonTemplateLayout.eventTemplateUri), but since I have a cloud config server, I would like to move that file into the cloud config server to be centralized and used by all microservices. is there a feature to retrieve the file from url ? like I'm doing for
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I embed mine into the logging configuration file:
|
Beta Was this translation helpful? Give feedback.
-
The solution proposed by Ralph is the only one currently available, since JTL only handles I have opened #2537 to fix this. |
Beta Was this translation helpful? Give feedback.
The solution proposed by Ralph is the only one currently available, since JTL only handles
file:
andclasspath:
URIs.I have opened #2537 to fix this.