• Post Reply Bookmark Topic Watch Topic
  • New Topic

Independent Logging for each Operation  RSS feed

 
Prashant Saraf
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using CXF to build webservice, my current package of war has 20+ service wsdl and each WSDL has at least two operation. I want to create different logging for each service(either with each WSDL/each Operation).
For logging we are using Log4J and all Logs were going into same log file.

Thanks for Help.

Regards,
Prashant Saraf

 
Karthik Shiraly
Bartender
Posts: 1210
25
Android C++ Java Linux PHP Python
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In log4j.properties, configure a separate logger for each web service, and configure a separate file appender for each logger. https://logging.apache.org/log4j/1.2/manual.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!