Home›Java›Mods›Chat Logger
ModsJava

Chat Logger

by bl791 · on Modrinth

Which Minecraft do you have?

Every version of the game needs its own build. Pick yours, then download — the wrong build installs fine and then does nothing in the game. This mod is built for Fabric only.

⬇ Download for 1.21.4–1.21.11⬇ Download for 1.21–1.21.3
I don't know my version or loader
Open the Minecraft launcher and look at the profile you play on — it names both, like fabric-loader-1.21.4. The version also shows in the bottom-right corner of the game's main menu.
No loader in the profile name? Then it's plain Minecraft, and these mods won't run — you need Fabric or NeoForge installed first.

MC Chat Logger

Join my Discord server for free MC server hosting :) https://discord.gg/fdSVNfDUx7

Support & Updates / Chat Log Viewer

A lightweight client-side mod that logs public chat messages in servers to JSON files.

Features

Coming soon: Web UI to visualize chat logs, examples for finetuning a LLM on chatlogs, and more.

Output Format

Logs are saved to .minecraft/chatlogs/<server>/session_<date>_<id>.json (or the chatlogs folder in your Minecraft folder):

{
    "server": "play_example_com",
    "sessionId": "a1b2c3d4",
    "sessionStart": "2024-01-15 14:30:00",
    "lastUpdated": "2024-01-15 15:45:30",
    "messageCount": 127,
    "messages": [
        {
            "timestamp": "2024-01-15 14:31:05",
            "epochMillis": 1705329065000,
            "senderUuid": "069a79f4-44e9-4726-a5be-fca90e38aaf5",
            "senderName": "Notch",
            "message": "<Notch> Hello everyone!"
        }
    ]
}

Use Cases

Support

Feel free to DM me on Discord (bl4747) if you need any support. You can also join my server.

Acknowledgements

Thanks to grah, Guter Mensch, and Stealth Gamer for testing :)

Note

Make sure you acquire all necessary consent before recording chat messages! You are fully responsible for your use of this mod.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

Verified by MCModsHub

These come from our own check of the pack file, not from the source page.

Explore more