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

 

Add Comment