Multiple Logs

I was just thinking, this is just an idea that could easily be done with a plugin but what if the server log file was divided up into sections, like Connections, Errors, Block Placement, Chat, Information

As long as various “groups” are identified by some matchable pattern there are existing tools to let one focus on one or more of these sets. FML already does this:

[00:36:43] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[00:36:43] [main/INFO] [FML/]: Forge Mod Loader version for Minecraft 1.7.10 loading
1 Like

I think it’s best to keep all logging messages in chronological order. You can download log viewers and filter the different logging levels etc as shown by @LokiChaos

As a general rule, logging is done by appending to a file. With Log4j 2 you can configure certain messages to be appended to a different file. You don’t even need a plugin, you just need to tell log4j to send any messages which have to do with any particular subject to append to a different file.

Developers however do need to be mindful where they are putting their logging statements to make it sanely configurable, that thats a different matter.

1 Like