Most importantly is that you define a log node name in a single place, such that you can change it later.
My preference is to use a submicroflow for logging and define the lognode name in a variable.
This prevents your constants tab from being cluttered.
Furthermore, a custom lognode only appears in the lognode list after a first log message is generated.
So if you want to be able to configure the loglevel after the start of the application, you have to write a log message using the lognode name in the startup microflow.
- It is better to use Enumerations to define the log node name
- With your ASU microflow, you can initialize the log nodes that is defined.
- Go through the advanced learning path: Please go through the advanced learning: https://gettingstarted.mendixcloud.com/link/module/355/lecture/2836/5.1-Introduction
- They have also explained why a constant should not be used for log node names
Hope it will be helpful.