🏜️
Sahara Scripters
  • Welcome
    • Introduction
    • Community & Support
  • Premium Scripts
    • Charging Kiosk
      • Setup Guide
      • Configuration
      • Features
        • Charging System
        • Security
        • Rate Limiting
        • Logging System
        • Phones Management
        • Discord Integration
        • Target System
        • Blip System
        • Translations
      • Integration
        • Inventory Systems
        • Framework Migration
        • Logger Edit
      • Best Practices
      • Troubleshooting
      • Version History
  • Free Scripts
    • Elevator System
      • Setup & Configuration
      • Features Overview
      • Example Buildings
      • Troubleshooting
    • NPWD Renewed Weather APP
    • NPWD QBX Services APP
Powered by GitBook
On this page
  • 📊 Overview
  • 🔍 Logged Events
  • ⚙️ Configuration
  • 📋 Log Types
  • Server Console Logs
  • Discord Logs
  • 🎨 Discord Log Colors
  • 💡 Best Practices
  1. Premium Scripts
  2. Charging Kiosk
  3. Features

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

PreviousRate LimitingNextPhones Management

Last updated 4 months ago