Log Configuration

return {
    logs = {
        -- What logging service do you want to use?
        -- Available options: 'fivemanage', 'fivemerr', 'discord', 'loki', 'grafana' & 'none'
        service     = 'none',

        -- Do you want to include screenshots with your logs?
        -- This is only applicable to Fivemanage and Fivemerr
        screenshots = false,

        -- You can enable (true) or disable (false) specific events to log here
        events = {
            -- Daily objectives & challenges
            redeem_daily_objective       = true,  -- when a player redeems a daily objective
            redeem_daily_challenge       = true,  -- when a player redeems a daily challenge

            -- Milestones
            redeem_milestone             = true,  -- when a player redeems a milestone

            -- Dumpster & hobo loot
            search_dumpster              = true,  -- when a player successfully loots a dumpster
            loot_hobo                    = true,  -- when a player loots a hobo
            loot_camp                    = true,  -- when a player loots a camp
            loot_bag                     = true,  -- when a player destroys a bag for loot

            -- Stashes
            register_stash               = true,  -- when a player opens/registers a stash

            -- Hobo King shop
            buy_item                     = true,  -- when a player buys an item
            sell_item                    = true,  -- when a player sells an item
            sell_all_items               = true,  -- when a player sells all items

            -- Expeditions & Rat
            claim_expedition_rewards     = true,  -- when a player claims expedition loot
            buy_rat                      = true,  -- when a player buys a rat
            spend_rat_perk               = true,  -- when a player spends a perk point

            -- Recycling
            insert_recycler_item         = true,  -- when a player inserts an item into the recycler
            remove_recycler_item         = true,  -- when a player removes an item from the recycler
            collect_recycled_item        = true,  -- when a player collects a single recycled item
            collect_recycled_items_all   = true,  -- when a player collects all recycled items
            discard_recycled_item        = true,  -- when a player discards a single recycled item
            discard_recycled_items_all   = true,  -- when a player discards all recycled items
        },

        -- If service = 'discord', you can customize the webhook data here
        -- If not using Discord, this section can be ignored
        discord = {
            -- The name of the webhook
            name   = 'Dumpster Logs',
            -- The webhook URL
            link   = '',
            -- The webhook avatar image
            image  = '',
            -- The webhook footer icon
            footer = '',
        },

        -- If service = 'loki', provide your Loki push settings
        loki = {
            -- Base URL (without trailing slash), e.g. 'https://loki.example.com'
            endpoint = '',
            -- (Optional) Basic auth username
            user     = '',
            -- (Optional) Basic auth password or API key
            password = '',
            -- (Optional) X-Scope-OrgID header value
            tenant   = ''
        },

        -- If service = 'grafana', provide your Grafana Cloud Logs settings
        grafana = {
            -- Base URL (without trailing slash), e.g. 'https://logs-prod.grafana.net'
            endpoint = '',
            -- Your Grafana API key (prefixed with 'Bearer ')
            apiKey   = '',
            -- (Optional) X-Scope-OrgID header value
            tenant   = ''
        }
    },
}

Last updated