I can't figure out how to turn off the default logger and use slf4j instead of the default in Liferay DXP 7.2 mvc-portlet. A working example would be great.
I have already tried:
How to disable XML Log Files in Liferay 7.x
Using SLF4J and Liferay Logging Framework in custom plugins
There are few example available on Liferay documentation, blogs and github. See below links.
https://help.liferay.com/hc/en-us/articles/360017883592-Implementing-Logging- https://liferay.dev/blogs/-/blogs/liferay-logging-is-dead-long-live-liferay-logging- https://github.com/dnebing/slf4j-liferay