Logger

Configurable logging of chat, commands, connections, and more

Total Downloads: 2,701 - First Release: Oct 22, 2014 - Last Update: Dec 11, 2017 at 9:41 AM

5/5, 22 likes
  1. Wulf
    Configuration File:
    Yes
    Logger provides configurable logging for chat messages, chat commands, console commands, player respawns, items crafted, and items dropped. Each type of logging can be enabled/disabled via the configuration file. Logs are stored under the oxide/logs/Logger folder.

    Universal Configuration

    You can configure the settings in the Logger.json file under the oxide/config directory.
    Code (Javascript):
    {
      "Log chat messages (true/false)": true,
      "Log command usage (true/false)": true,
      "Log player connections (true/false)": true,
      "Log player disconnections (true/false)": true,
      "Log player respawns (true/false)": true,
      "Log output to console (true/false)": true,
      "Excluded commands (full or short commands)": [
        "help",
        "version",
        "chat.say",
        "craft.add",
        "craft.canceltask",
        "global.kill",
        "global.respawn",
        "global.respawn_sleepingbag",
        "global.status",
        "global.wakeup",
        "inventory.endloot",
        "inventory.unlockblueprint"
      ]
    }
    Rust-Specific Configuration
    Code (Javascript):
    {
      "Log when crafting started (true/false)": true,
      "Log when crafting cancelled (true/false)": true,
      "Log when crafting finished (true/false)": true,
      "Log items dropped by players (true/false)": true
    }
    Universal Localization

    The default messages are located in the Logger.en.json under the oxide/lang directory. Language files are also available for French, German, Russian, and Spanish. To add support for another language, create a new language folder (ex. de for German), copy the default language file to the new folder, and then customize the messages.
    Code (Javascript):
    {
      "PlayerCommand": "{0} ({1}) ran command: {2} {3}",
      "PlayerConnected": "{0} ({1}) connected from {2}",
      "PlayerDisconnected": "{0} ({1}) disconnected",
      "PlayerRespawned": "{0} ({1}) respawned at {2}"
    }
    Rust-specific Localization
    Code (Javascript):
    {
      "CraftingStarted": "{0} ({1}) started crafting {2} {3}",
      "CraftingCancelled": "{0} ({1}) cancelled crafting {2} {3}",
      "CraftingFinished": "{0} ({1}) finished crafting {2} {3}",
      "ItemDropped": "{0} ({1}) dropped {2} {3}",
    }
    Radsy., Westingham, Fujikura and 2 others like this.