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”
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” />

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

~ the grafana team