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