简体   繁体   中英

How I can use single log4j for multiple modules?

I have multiple java project and all are having separate log4j configuration. But i want to single log4j for all modules so that if there is a change in log4j then no need to update all log4j files. So if i put common properties in one file and modules specific properties in another file and at the run time i want to merge both files and create single log4j file.

My tip is not to do it. Usually logs are separated because they need to be , for multiple reasons:

  • for easier getting around them after issue
  • because they logically are meant to be separated since they cover different code
  • tracking from which service did the issue come etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM