Log4j2.xml configuration in Mule API to log to Grafana Loki

Hi All,

We are trying to log our MuleSoft API data to Grafana Loki. I am trying to configure the log4j2.xml file this way:
Configuration status=“INFO”
packages=“pl.tkowalcz.tjahzi.log4j2”
Appender used is
<Loki name=“Loki” bufferSizeMegabytes=“64”
url -https://Grafana-Prd.int.pepper.com.au/loki/api/v1/push
AsyncRoot level=“INFO”
AppenderRef ref=“Loki” />
AsyncRoot>

However the logging doesnt happen and the network settings are all good. Please let me know how a mule api can connect to Grafana loki in log4j2
THANK YOU!!

~ the grafana team