Sunday, August 9, 2015

Change Mule Application Logging Level

Introduction

MuleSoft has changed many stuff for the last year. One of the questions developer will ask is how to change the logging level. One might think that he can just create log4j.properties file and set the logging there. Unfortunately, this will not work. We have to create a file name log4j2.xml.

Solution

Put the following file (named as: log4j2.xml) into src/main/resources:


  
    
      
    
  
  
  
  
	
	
    
	
	
    
    
    
    
	
	
    
    
    
    
    
    
   
    
      
    
  

Mule's Anypoint Studio comes with slf4j librarary. You can create your logger like this:

   private static Logger logger = LoggerFactory.getLogger(TransformListOfObjects.class);
After you put the file of log4j2.xml in place as stated above, you can run your application from the Anypoint Studio, you will see debug messages. These message can be very valuable, in particular, to check the parameters set for various connectors.

43 comments:

  1. Thanks Gary.. I still remember before 2 year I started learning mule I used to search mule videos in YouTube and i found yours. It was too nice

    ReplyDelete
  2. Thanks for sharing very valuable information. In CloudHub, there is some setting to change logging level at runtime instead of file.

    Mule ESB Online Training | Mule Training | Mule API Training

    ReplyDelete
  3. Great thoughts you got there, believe I may possibly try just some of it throughout my daily life.
    Devops Training courses
    Devops Training in Bangalore
    Best Devops Training in pune
    Devops interview questions and answers

    ReplyDelete
  4. From your discussion I have understood that which will be better for me and which is easy to use. Really, I have liked your brilliant discussion. I will comThis is great helping material for every one visitor. You have done a great responsible person. i want to say thanks owner of this blog.
    angularjs Training in chennai

    angularjs Training in chennai

    angularjs-Training in tambaram

    angularjs-Training in sholinganallur

    angularjs-Training in velachery

    angularjs-Training in pune

    ReplyDelete
  5. After reading this web site I am very satisfied simply because this site is providing comprehensive knowledge for you to audience.
    Thank you to the perform as well as discuss anything incredibly important in my opinion. We loose time waiting for your next article writing in addition to I beg one to get back to pay a visit to our website in



    selenium training in Bangalore
    selenium training in Marathahalli
    selenium training in Btm layout
    selenium training in Jaya nagar
    selenium training in Electronic city
    selenium training in Kalyan nagar



    ReplyDelete
  6. Thank you for sharing wonderful information with us.Really useful for everyone
    Mulesoft Online Training
    Mulesoft Training in Hyderabad

    ReplyDelete
  7. This is a wonderful article, Given so much info in it, These type of articles keeps the users interest in the website, and keep on sharing more ... good luck.

    best digital marketing course mumbai

    ReplyDelete


  8. Excellent! I love to post a comment that "The content of your post is awesome" Great work!
    business analytics courses

    ReplyDelete
  9. I really enjoy simply reading all of your weblogs. Simply wanted to inform you that you have people like me who appreciate your work. Definitely a great post. Hats off to you! The information that you have provided is very helpful.

    artificial intelligence course in bangalore

    ReplyDelete
  10. It has fully emerged to crown Singapore's southern shores and undoubtedly placed her on the global map of residential landmarks. I still scored the more points than I ever have in a season for GS. I think you would be hard pressed to find somebody with the same consistency I have had over the years so I am happy with that.
    artificial intelligence course in bangalore

    ReplyDelete
  11. "Thank you for sharing wonderful information with us.Really useful for everyone data scientist courses
    "

    ReplyDelete
  12. I have bookmarked your website because this site contains valuable information in it. I am really happy with articles quality and presentation. Thanks a lot for keeping great stuff. I am very much thankful for this site.
    artificial intelligence course in bangalore

    ReplyDelete
  13. I have bookmarked your site since this site contains significant data in it. You rock for keeping incredible stuff. I am very appreciative of this site.
    data analytics training in hyderabad

    ReplyDelete
  14. We extend our heartfelt thanks for sharing comprehensive information about the best MEC junior colleges in Hyderabad. Your content has been incredibly helpful and informative. Thank you for providing such valuable insights.
    Best MEC Juniour Colleges in Hyderabad

    ReplyDelete
  15. I extend my sincere appreciation for the valuable information you shared about the esteemed CA institute in Hyderabad. Your insights have provided a clear picture of its excellence in producing skilled accounting professionals.

    CA institutes in Hyderabad

    ReplyDelete
  16. An excellent manual. Certainly, I'll heed these recommendations. Thank you for providing such a thorough essay. I'm picking up a lot from you.
    Best institute for CMA in Hyderabad

    ReplyDelete
  17. a first-rate guide. Without a doubt, I'll abide by these advice. It's been a pleasure working with you. From you, I'm learning a lot.
    Best institute for CMA in Hyderabad

    ReplyDelete
  18. Fantastic site! Kudos to the author, and we hope you'll continue to produce work of this calibre in the future. This article will undoubtedly motivate a lot of hopefuls who are eager to learn. Expecting a lot more content and being really curious.
    Best Juniour Colleges In Hyderabad For MEC

    ReplyDelete
  19. Thank you for your post. This is excellent information. It is amazing and wonderful to visit your site.
    Sap Hr Hcm Training Hyderabad

    ReplyDelete
  20. Hello Blogger,
    Thanks for the detailed instructions on how to change the logging level in Mule applications. I'm sure this will be helpful to many developers.
    Data Analytics Courses in Nashik

    ReplyDelete
  21. On the website, there is useful information available. I hope there will be more blogs like this. Many thanks for sharing.
    Best CA institutes in Hyderabad

    ReplyDelete
  22. Thank you for providing us with the best tips and information; they are lovely and quite helpful. Your website is excellent and really fascinating.Your website and information are both satisfactory to me.
    Best Intermediate Colleges For MEC In Hyderabad

    ReplyDelete
  23. Thank you for sharing this valuable information on changing the Mule application's logging level. Your clear instructions and provided XML configuration will be immensely helpful for developers.
    Data Analytics Courses In Dubai

    ReplyDelete
  24. I appreciate you giving this useful information about modifying the logging level for the Mule application. The XML configuration you provided and the clear instructions you provided will be very useful to developers.
    Data Analytics Courses in Agra

    ReplyDelete
  25. thank you so much for sharing this step-by-step instruction on how to Change the Mule Application Logging Level. It was very helpful for me.
    Visit - Data Analytics Courses in Delhi

    ReplyDelete
  26. "Great tutorial! I found changing the Mule application logging level particularly useful in troubleshooting. One thing to note is that adjusting the log4j2.xml file worked seamlessly for me. Thanks for sharing this helpful information!"
    Best Data analytics courses in India

    ReplyDelete
  27. thanks for the greate information . It helped a lot keep provide like this information
    https://www.avinatech.com/

    ReplyDelete
  28. Thank you for providing us with the best tips and information; they are lovely and quite helpful. Your website is excellent and really fascinating.Your website and information will be immensely helpful for developers.
    Data science courses in Gurgaon

    ReplyDelete
  29. I really enjoyed reading this! The information you provided is clear and actionable. Keep up the great work

    Data science courses in Gujarat

    ReplyDelete
  30. "Thanks for the great tips! The data science courses in Faridabad are an excellent way to advance your career."

    ReplyDelete
  31. This blog post provides a clear and practical guide on changing the logging level for Mule applications. The step-by-step instructions are easy to follow, making it accessible for both beginners and experienced users. The explanations are concise yet informative, and the inclusion of code snippets enhances understanding. It's a valuable resource for anyone looking to improve their logging practices in Mule. Great work on demystifying this essential aspect of application management!

    data analytics courses in dubai

    ReplyDelete
  32. Great guide on changing the logging levels in Mule applications! Your step-by-step instructions are very clear and will definitely help many developers manage their logs more effectively.
    Data science courses in Bhutan

    ReplyDelete
  33. Fine post on Change Mule Application Logging Level very well explained code and very informative to read as well.
    Online Data Science Course

    ReplyDelete
  34. The way you approached Change Mule Application Logging Level is so clever. I appreciate how you broke it down into manageable steps, it’s a real boost for anyone facing similar challenges. Thanks for sharing your process.
    Data science courses in Kochi

    ReplyDelete

Anypoint Studio Error: The project is missing Munit lIbrary to run tests

Anypoint Studio 7.9 has a bug. Even if we following the article: https://help.mulesoft.com/s/article/The-project-is-missing-MUnit-libraries-...