I am trying to configure log4j2 without use of any property file or other configurations.
I am basically defining the appenders programmatically but there seem to be very less documentation on this method.
Any help with respect to configuring it programmatically without property.xml file is deeply appreciated.
I just found one article to configure without XML file which is present in the link below. Configuring XML without property file
I am using classes like Configuration builder factory and methods associated with this. Also defining appenderbuilders and layoutbuilders in code itself.
But is there any documentation or examples I can refer for this.
Kindly pls do suggest some documentation/blogs which will help me a lot.
CodePudding user response:
Yes, there is a good documentation about this here: Programmatic Configuration