Email error logs

I am looking for a better way to deal with the Yii2 error log without buying a separate service.

The only thing I can think is to just email the errors as they occur, to myself. Is there an easy way to do this with Yii 2?

Or is there a better way to deal with the error log?

You can do exactly what you want with yii2: Logging guide

From my experience sending each and every log message via email is too much so consider You can install it to your own server: