...
Let's start with the basics first. In order to write into the log files correctly, we should make use of the the LogUtil (Source code: https://github.com/jogetworkflow/jw-community/blob/8.0-SNAPSHOT/wflow-commons/src/main/java/org/joget/commons/util/LogUtil.java) utility class.
...