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

symfony - TEST environment only: The database schema is not in sync with the current mapping file -

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -