Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I am using log4j2 with XML based configuration (log4j2.xml). I have a RollingFileAppender defined in log4j2.xml, whose instances are created and attached to loggers dynamically based on certain logger functionality in my application. Every time to add an appender, I want to clone existing RollingFileAppender, just by changing file name. So, I am looking for the best way to deep clone RollingFileAppender (with all filters, pattern, policies etc.). I know I can use third party libraries to clone, but that needs certain JDK modules to be opened for reflective access which I want to avoid if possible. Is there a better way (maybe passing XML tag <RollingFile>…</RollingFile> and getting corresponding object from it?)
Any help would be highly appreciated. NOTE: I want to keep RollingFileAppender configuration externalized into log4j2.xml, avoiding to manage it into java code.
Thanks in advance.
BYUKUSENGE1122
efc7faea746444dc908905614d8f9e
a9b6ec20aac54b7fb8b665177d1414
013e7d0b6b004201b23bba10789eaa
LittleTurquoiseSeal
Sen Wang
4d93f2f07ce540cbb84c4d97e835bc
Dani
d06b3a356d374ee6a0a12809b4783f
Gavin Lasco
14ed7f5e756d40a9971bfff98e543a