We need to create a custom log file (Example: payment.log) that contains only a custom log for payment module. We have already configured the server (server.xml) with below:
<logging consoleLogLevel="off"
copySystemStreams="false"
maxFiles="10"
traceFileName="payment.log"
traceFormat="BASIC"
traceSpecification="com.dm.epay.logging.*=debug=enabled:com.worklight.*=off"
suppressSensitiveTrace="true"/>
Then, In the adapter (Example PaymentAdapter), we have called a custom java (DmEpayLogger) class: com.dm.epay.logging.DmEpayLogger.info("INFO >> Init Payment"); to write the log in "payment.log" file.
The problem is that payment.log file is mixed with other worklight logs. So, we believe that we have missed something in server.xml config file.
Any idea? Please advise!