java - How to pass parameters for an appender of log4j at run time -
i have configured dailyrollingfileappender in log4j.xml.during run time in sub project,
- i need pass path log file specific subproject.
- i don't want pass path vm arguments.
- i have customized dailyrollingfileappender , added method set path.
- i want access dailyrollingfileappender in main() method of sub project.
- i want modify/add parameters existing dailyrollingfileappender.
- after log files should adopt changes(path of log file) had passed parameters.
i removed creation of dailyrollingfileappender xml , added programmatically setting filepath
this file path set commanline arguments. working properly. every one
Comments
Post a Comment