Uploaded image for project: 'Minecraft Launcher'
  1. Minecraft Launcher
  2. MCL-17489

Launcher does not allow to use a custom Log4J configuration

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • None
    • 2.2.2311 (Windows)
    • Minecraft Launcher
    • None
    • Windows 10
    • Unconfirmed

      When I set -Dlog4j.configurationFile=<my-file-path> parameter to JVM args
      then the game still uses the default Log4J config.

      I checked the command line that started the game and it showed that
      in fact the launcher appends this parameter again at the end of all JVM args,
      so that the second instance of the parameter overrides my parameter:
      ... -Dlog4j.configurationFile=<my-file-path> -Dlog4j.configurationFile=<default-file-path> ...

      A solution to this problem seems to be simple:
      The launcher should append the user's JVM args at the end of all parameters
      to allow override any default JVM arg, including overriding the default Log4J config path with a custom path.

       

            Unassigned Unassigned
            TommyMC Tom MCT
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: