overextended / oxmysql

MySQL resource for FXServer.
https://overextended.dev/oxmysql
GNU Lesser General Public License v3.0
319 stars 196 forks source link

feat(logger): fivemerr support #235

Closed darksaid98 closed 3 months ago

darksaid98 commented 3 months ago

Description

It's been a while since I did anything here although I do still lurk in the issues/pr's, so figured I'd contribute.

This adds support for logging using https://fivemerr.com/ as requested in https://github.com/overextended/oxmysql/issues/233. Credit to the requester @rxnm for providing the code (not sure why they didn't make a PR). I only made a couple of minor changes to make it mirror the code in the Fivemanage logger.

The code has been tested and is working as intended.

Usage:

The logger service is named fivemerr and uses a new convar FIVEMERR_LOGS_API_KEY.

set mysql_logger_service "fivemerr"
set FIVEMERR_LOGS_API_KEY "" # Put your API key here
thelindat commented 3 months ago

I won't be merging fivemerr support. I'm not going to get into the reasons here.