Je veux imprimer mon nom d'application fourni dans .yml
fichier dans mes log4j
journauxcomment imprimer le nom d'application fourni dans le fichier .yml dans chaque instruction de journal?
mon modèle log4j
est
LOG_PATTERN=[%d{yyyy-MM-dd HH:mm:ss.SSS}] boot%X{context} - ${PID} ${LOG_LEVEL_PATTERN} [%t] --- %c{1}: %m%n
Actuellement je recevais des journaux comme
2017-09-16 15:53:35.687 INFO 18302 --- [ restartedMain] mc.n.e.EurekaDiscoveryClientConfiguration : My Log print statement
Le format que je veux que mes journaux imprimer
2017-09-16 15:53:35.687 INFO 18302 --- [**APPLICATION_NAME**] [ restartedMain] mc.n.e.EurekaDiscoveryClientConfiguration : My Log print statement
Comment puis-je mettre le nom de l'application là dans log4j
journal