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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -