Writing Log files to external Source

Hi all,
We are implementing erpnext for our internal purposes and would like to write the logs to an external source other than the specified log tables in the mariadb database.

Any help on this matter would be of great help to us.