1
votes

As discussed here from Dropwizard 1.2.4 it is possible to use log4j in place of logback. The steps are also mentioned in the documentation.

But I am not able to locate how can I specify the log4j file name and location in the configuration file. Can some one let me know how can I specify the log4j configuration file name and its location?

  • Dropwizard Version 1.2.4
1
github.com/arteam/dropwizard-nologback/blob/master/src/main/… This project is referenced in the discussion above. Note that there is big problem with the current approach: github.com/arteam/dropwizard-nologback/issues/1 - zloster

1 Answers

2
votes

As explained in the Log4j documentation the log4j file location can be specified using the system property log4j.configurationFile.