We are starting workflow app as part of the spring boot which has log4j2 dependency. Is it ok to use log4j2 for logging within workflow classes?
I would recommend using slf4j with log4j binding as the rest of the workflow code.
Workflow.getLogger returns an instance of slf4j logger.
If it is not an option for you then implement your own version of log4j logger which doesn’t emit duplicated records the same way ReplayAwareLogger does.
Thanks Maxim, current project is using sl4j with log4j logger.