ObsidianMC / Obsidian

A C# implementation of the Minecraft server protocol.
GNU General Public License v3.0
413 stars 42 forks source link

Properly use Logger #416

Closed Aaron2550 closed 10 months ago

Aaron2550 commented 10 months ago

Closes #394

I didnt touch Console.WriteLine, and Obsidian/Obsidian/Net/MinecraftStream.Writing.cs because it uses Globals.PacketLogger, which doesnt exist. I did do comments with Globals.PacketLogger, because someone might copy/paste from those. IDK what i was thinking.

I used a RegEx i built to find all of these "wrong" usages: Log(ger)?\.[a-zA-z]{1,16}\(\$"