Samuel's Development, Official Documentation
  • 🎉Welcome
  • 📑Overview
    • Resources
      • Bobcat Weapon Heist
        • Installation Guide
        • Configuration
      • Traphouse Robbery
        • Installation Guide
        • Configuration
      • Pacific Bank Heist
        • Installation Guide
        • Configuration
      • Oxy Run
        • Installation Guide
        • Configuration
      • Dumpster Diving
        • Installation Guide
        • Configuration
        • Log Configuration
      • Warehouse Heist
        • Installation Guide
        • Configuration
      • Oil Rig
        • Installation Guide
        • Configuration
      • Beekeeping
        • Installation Guide
        • Configuration
        • Log Configuration
      • Yacht Robbery
        • Installation Guide
        • Configuration
      • Notify
        • Installation
        • Configuration
      • Cocaine Mission
        • Installation Guide
        • Configuration
      • Advanced Drug Sales
        • Installation Guide
        • Configuration
    • Library
      • Installation & Integration
      • Modules
        • Client
          • Callback
          • StartProgress
          • LoadAnim
          • LoadModel
          • LoadPtfxAsset
          • ShowNotification
          • SendEmail
          • PoliceDispatch
          • StartHack
        • Server
          • Callback
          • Name
          • Money
          • Logger
          • Inventory
          • HasGroup
          • GetPlayer
          • GetPlayers
          • GetPlayerByIdentifier
          • GetIdentifier
          • GetPlayerGender
          • CheckVersion
        • Shared
          • Array
          • Table
          • String
          • Math
          • Locale
            • JSON Example
          • AwaitLoad
          • Framework
  • 📚F.A.Q
    • How do I change Locales?!
    • How to add Police Alerts?!
    • What types of dirty money are supported?
Powered by GitBook
On this page
  • Overview
  • Parameters
  • Usage Example
  • Configuration
  1. Overview
  2. Library
  3. Modules
  4. Server

Logger

The SD.Logger module provides a structured logging system designed to collect and send logs to a Discord webhook, allowing developers to monitor and review events remotely.

Overview

Purpose: Provides a centralized logging mechanism using Discord webhooks, which aggregates logs into a Discord channel to aid in debugging and monitoring.

Parameters

  • name (string): A unique name for the log group.

  • title (string): The title of the log message.

  • color (string): A color code or key from predefined colors for the embed.

  • message (string): The content of the log message.

  • tagEveryone (boolean, optional): If set to true, includes an '@everyone' tag in the message.

Usage Example

SD.Logger("gameplay", "Player Connected", "default", "Player John_Doe has connected.", true)

Configuration

Before using SD.Logger, ensure that a valid webhookURL is set. This URL directs where the logs will be sent and is crucial for the module's operation.

local webhookURL = "https://discord.com/api/webhooks/123456789012345678/abcdefghijklmnoprstuvw
PreviousMoneyNextInventory

Last updated 1 year ago

📑