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

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -