Logs
Details
Below, you will find detailed configuration for logs.
Configuration file
config/logs.lua
return {
---@type boolean
enabled = true,
-- if defined, it will enable logs page for certain groups
-- if set to false, it will take in account above and enable logs page for everyone
-- who uses dispatch
-- use true to enable for all grades, or a number to set the minimum grade
---@type table<string, boolean | number> | false
enabledFor = false,
automaticallyDelete = {
-- if set to true, it will automatically delete logs after a certain time
---@type boolean
enabled = true,
-- the time in days after which logs will be deleted
---@type number
days = 2,
},
}
Detailed types information
enabled boolean Defines if Logs page is enabled in general.
enabledFor table<string, boolean | number> | false If this set to false and enabled is set to true, logs page will be enabled for everyone. Otherwise you can set a table for example:
enabledFor = {
['police'] = true
} In this example, logs page will be shown only to police. Use true to enable it for all grades of a group, or a number to set the minimum grade required, for example:
enabledFor = {
['police'] = 2
}Automatic deletion
Automatically delete old logs after a set number of days.
automaticallyDelete.enabled boolean If enabled, logs are automatically deleted after the configured time.
automaticallyDelete.days number The time in days after which logs will be deleted.