Huong Dan Java Logger – Part 3 – Change Mule Category for Logger

The Huong Dan Java Logger only uses the Logging Framework to log information that the user needs to log. The default category of Anypoint Devkit (Connectors) is unreasonable. Therefore, I will use the annotation @Category of Mule ESB to adjust. You can refer to the annotation @Category in this tutorial.

Here, in the categories that Mule supports, I find it most logical to be the Components category. Do you have any other opinions? 🙂

I will open the HuongDanJavaLoggerComponentConnector class to add the @Category annotation after the @Connector annotation as follows:

At this point, if you install our Connector (by right-clicking on the project, selecting Anypoint Connector and selecting Install or Update), you will see in the Mule Palette, the Components part, the Huong Dan Java Logger appears as follows ( You have to open a file Mule Configuration File to see Mule Palette):

Huong Dan Java Logger - Part 3 - Change Mule Category for Logger

 

Huong Dan Java Logger – Part 3 – Change Mule Category for Logger
Đánh giá bài viết
Chia sẽ bài viết này ...Share on Facebook
Facebook
4Tweet about this on Twitter
Twitter
Share on LinkedIn
Linkedin

Add Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.