Logs
Details
Logging configuration used throughout the whole shops resource. Please note, that you SHOULDN’T USE DISCORD FOR LOGS, but we made it as an option.
Configuration file
config/logs.lua
return {
---@type 'ox' | 'discord' | 'custom'
use = 'discord',
---@type table<string, string | nil>
webhooks = {
['buy'] = nil,
['sell'] = nil,
['stock'] = nil,
},
---@type fun(payload: Log): nil
custom = function(payload)
-- Custom logging function
end
}