How to get web app logs which is connect with prometheus in grafana and send alert message?

i am looking web app logs and which i connect with prometheus and getting graph in grafana but i want the logs of all that to see when its get error and what is the error in the web url.

thank you