Spring roo log4j setup




















Collectives on Stack Overflow. Learn more. Initializing Log4J with Spring? Ask Question. Asked 11 years, 1 month ago.

Active 4 years, 10 months ago. Viewed 92k times. Improve this question. HDave HDave Add a comment. Active Oldest Votes. You could configure your Log4j listener in the web. Improve this answer. Crowie 3, 6 6 gold badges 27 27 silver badges 48 48 bronze badges.

Ralph Ralph k 52 52 gold badges silver badges bronze badges. If I could do that, I think I am all set. I have found this: coderanch. I created my own servlet context listener like they did and it all works perfectly. I put the following together to add an extra appender using spring. Once you are done with creating source and bean configuration files, let us run the application. The only file we technically need out of this package is the commons-logging-x.

To use the logging functionality you need a org. You have to make sure that you have included commons-logging-x. Now keeping the rest of the configuration and content unchanged in the above example, if you compile and run your application, you will get a similar result as what you got using Log4J API. Karthikeya T. Chaand Sheikh. Senol Atac. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back Featured on Meta.

New post summary designs on greatest hits now, everywhere else eventually. Related Hot Network Questions. Question feed. Stack Overflow works best with JavaScript enabled. Accept all cookies Customize settings.



0コメント

  • 1000 / 1000