đ Advanced Logging
TKI Auth features a comprehensive logging system that tracks every action and event within your authentication system. Our Advanced Logging feature takes this to the next level by creating organized, user-specific threads in Discord forum channels.
Overviewâ
The logging system in TKI Auth is designed to provide complete visibility into your authentication system's operations. Every license creation, deletion, request, and administrative action is automatically logged and can be sent to dedicated Discord channels.
Basic vs Advanced Loggingâ
Basic Loggingâ
- Logs events to specified Discord channels
- Separate channels for different event types
- Real-time notifications for administrators
Advanced Loggingâ
- Creates individual forum threads for each user
- Organizes all user activities in dedicated threads
- Combines license and request logs in one place
- Customizable thread naming with dynamic variables
Configurationâ
Enabling Advanced Loggingâ
Logging:
Enabled: true
AdvancedLogging:
Enabled: true
PostName: "{username}-logs"
ForumChannelID: "your-forum-channel-id"
StoreRequests: true
StoreLicenses: true
Available Variables for Thread Namesâ
You can customize thread names using these dynamic variables:
Variable | Description | Example |
---|---|---|
{userid} | Discord User ID | 123456789012345678 |
{username} | Discord Username | john_doe |
{discriminator} | Discord Discriminator | 0001 |
{tag} | Full Discord Tag | john_doe#0001 |
{licensekey} | License Key | TKI-ABC123-DEF456 |
{product} | Product Name | MyAwesomeProduct |
{timestamp} | Current Date | 2024-01-15 |
Logging Categoriesâ
Product Eventsâ
Track all product-related activities:
- Product Creation: New products added to your system
- Product Deletion: Products removed from your system
- Product Version Changes: Version updates and modifications
License Managementâ
Monitor license lifecycle events:
- License Creation: New licenses generated
- License Deletion: Licenses removed or revoked
- License Updates: Modifications to existing licenses
- Staff License Events: Special tracking for staff licenses
Security & Access Controlâ
Keep track of security-related events:
- Blacklist Creation: Users or IPs added to blacklist
- Blacklist Removal: Items removed from blacklist
- Request Success: Successful authentication attempts
- Request Rejected: Failed or blocked authentication attempts
How Advanced Logging Worksâ
1. Forum Channel Setupâ
When Advanced Logging is enabled, TKI Auth uses Discord's forum channels to create organized threads for each user.
2. Automatic Thread Creationâ
When a user first interacts with your system (creates a license, makes a request, etc.), TKI Auth automatically creates a dedicated forum thread for them.
3. Centralized User Activitiesâ
All subsequent activities from that user are logged to their personal thread, creating a complete history of their interactions with your system.
4. Dual Logging Supportâ
Advanced Logging works alongside traditional channel logging. You can have events logged to both the user's thread AND the specified channels.
Configuration Examplesâ
Example 1: User-Focused Loggingâ
AdvancedLogging:
Enabled: true
PostName: "{username} Activity Log"
ForumChannelID: "1234567890123456789"
StoreRequests: true
StoreLicenses: true
Example 2: Product-Specific Loggingâ
AdvancedLogging:
Enabled: true
PostName: "{product} - {username}"
ForumChannelID: "1234567890123456789"
StoreRequests: true
StoreLicenses: true
Example 3: Date-Organized Loggingâ
AdvancedLogging:
Enabled: true
PostName: "{timestamp} - {tag}"
ForumChannelID: "1234567890123456789"
StoreRequests: true
StoreLicenses: true
Benefits of Advanced Loggingâ
đ Complete User Historyâ
See everything a user has done in one organized thread, from their first license creation to their latest authentication attempt.
đ Better Organizationâ
No more scrolling through hundreds of messages in busy channels. Each user has their own dedicated space.
đ Improved Supportâ
When a user needs help, all their information is readily available in their personal thread.
đ Enhanced Analyticsâ
Easily track user behavior patterns and system usage by reviewing individual user threads.
đĄī¸ Security Monitoringâ
Quickly identify suspicious activity by monitoring user-specific threads for unusual patterns.
Important Notesâ
If you enable Advanced Logging on an existing system with licenses already created, the forum threads will not be automatically created for existing users. You'll need to manually set the forum channel ID in your MongoDB dashboard for existing licenses.
When StoreLicenses
is set to true and you still have traditional channel logging enabled, events will be stored in BOTH the user's forum thread AND the specified channels.
Best Practicesâ
Channel Organizationâ
- Use separate forum channels for different products
- Consider using categories to group related forum channels
- Set appropriate permissions for staff access
Thread Namingâ
- Keep thread names concise but informative
- Use consistent naming patterns across your system
- Include relevant identifiers for easy searching
Storage Settingsâ
- Enable
StoreRequests
for complete activity tracking - Enable
StoreLicenses
for license lifecycle monitoring - Consider your Discord server's storage limits when configuring
Troubleshootingâ
Forum Channel Not Working?â
- Ensure the channel ID is correct and points to a forum channel
- Verify the bot has proper permissions in the forum channel
- Check that the bot can create threads in the specified channel
Missing Logs?â
- Verify Advanced Logging is enabled in the configuration
- Check that both
StoreRequests
andStoreLicenses
are set correctly - Ensure the forum channel ID is valid and accessible
Advanced Logging is just one of the many features that sets TKI Auth apart from the competition. Explore more features or get started today.