Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have system.out.print also log the class that calls it in mods for dev/prod #1912

Open
TelepathicGrunt opened this issue Jan 24, 2025 · 0 comments
Labels
1.21.4 Targeted at Minecraft 1.21.4 enhancement New (or improvement to existing) feature or request

Comments

@TelepathicGrunt
Copy link
Contributor

Forge used to print this out in 1.12.2 (example from Silk):
[16:38:36] [main/INFO] [STDOUT]: [micdoodle8.mods.miccore.MicdoodlePlugin:injectData:292]: [Micdoodle8Core]: Patching game...

This was later removed but we should ideally add it back so players and packmakers can easily find what mod is spamming the log by using system.out.print instead of their mod's logger instead. This is the code old Forge used to have
https://github.com/MinecraftForge/MinecraftForge/blob/1.12.x/src/main/java/net/minecraftforge/fml/common/TracingPrintStream.java

Image

@TelepathicGrunt TelepathicGrunt added 1.21.4 Targeted at Minecraft 1.21.4 enhancement New (or improvement to existing) feature or request labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.21.4 Targeted at Minecraft 1.21.4 enhancement New (or improvement to existing) feature or request
Projects
None yet
Development

No branches or pull requests

1 participant