Send logs from Fivemanage scripts

Keep scripts built on Fivemanage's SDK (fmsdk) and scripts that call Fivemanage's log API, by switching the resource or the address and key.

Media Storage1 min read

On this page
  1. Scripts built on Fivemanage's SDK (fmsdk)
  2. Scripts that call Fivemanage's log API

Scripts built on Fivemanage's SDK (fmsdk)

Scripts that call exports.fmsdk:Log, Info, Warn, Error or LogMessage keep working with no edits. Each line goes to the dataset the script names, and LogMessage goes to default. fmsdk's config.json keeps working.

Their log calls are stored only with fxvault resource 1.1.0 or later, which is the current download, and a key that can send logs (fxvault:logsKey, else fxvault:key, with Send logs). An older zip drops the calls. With a Media-only key, each batch is refused and a red line prints in the console once a minute: give fxvault:logsKey a key with Send logs, or remove the fmsdk log calls.

  1. Keep the config.json from Fivemanage's fmsdk folder, then remove their folder.
  2. Put our fmsdk folder, from the fxvault zip, in its place, and put that config.json in it.
  3. In server.cfg:
Config
ensure fxvault
ensure fmsdk

FIVEMANAGE_LOGS_API_KEY is no longer read. The key is fxvault:logsKey, else fxvault:key, with Send logs. See The fxvault resource for the convars. Turning an event group on in both fxvault:logs:events and fmsdk's config.json stores each event twice.

Source: Fivemanage's SDK.

Scripts that call Fivemanage's log API

Change the address and the key.

https://api.fivemanage.com/api  →  https://api.fxvault.link/api
  • Sending, with POST /api/v3/logs, /api/logs/batch and /api/logs, needs a key with Send logs.
  • Reading, with GET /api/v3/logs and /api/v3/logs/{traceId}, needs a key with Read logs.

Source: Fivemanage's log API.

Need a server, or a hand with one?

Pick a plan to deploy a server, or open a ticket in the panel. Support runs 24/7/365.