Logging System

πŸ“Š Overview

The comprehensive logging system tracks all kiosk activities, providing both server console logs and optional Discord integration.

πŸ” Logged Events

  • πŸ“± Phone Storage/Retrieval

  • πŸ’° Payments/Refunds

  • ⚠️ Failed Attempts

  • πŸ” PIN Validations

  • πŸ”„ Staff Actions

βš™οΈ Configuration

logger = {
    enabled = true,
    discord = {
        enabled = false,
        botName = 'Charging Kiosk',
        serverName = 'Your Server Name',
        webhooks = {
            putPhone = 'webhook_url',
            takeoutPhone = 'webhook_url',
            payment = 'webhook_url',
            refund = 'webhook_url',
            error = 'webhook_url',
            recoverPhone = 'webhook_url',
            phoneLost = 'webhook_url'
        }
    }
}

πŸ“‹ Log Types

Server Console Logs

  • Real-time operation tracking

  • Error monitoring

  • Performance metrics

  • Debug information

Discord Logs

  • Phone transactions

  • Payment processing

  • Staff actions

  • System warnings

  • Lost phone alerts

🎨 Discord Log Colors

colors = {
    putPhone = 5763719,     -- Green
    takeoutPhone = 2201331, -- Blue
    payment = 16776960,     -- Yellow
    refund = 15105570,      -- Orange
    error = 15548997,       -- Red
    recoverPhone = 15844367 -- Light Blue
}

πŸ’‘ Best Practices

  • Enable logging in production

  • Regular log review

  • Set up log rotation

  • Monitor storage usage

  • Configure appropriate webhook channels


Debugged by Sahara Scripters - Because someone had to do it

Last updated