Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check for explicitly set logger config before overwriting it (#70)
This change allows users to utilize the `log4j2.configurationFile` system property for configuring the logging context to their liking. This property is read by log4j2 to find the configuration file it should load during initialization. Previously, setting this property only affected logging output during the boot stage (anything before launching Minecraft itself) due to the unconditional logger context reconfiguration. Tying this logic to the already existing system property used by log4j2 seemed the most logical, considering that this property is the only approachable way for specifying an alternative configuration in the first place.
- Loading branch information