Carpet

Carpet

2M Downloads

Set logger's name to Carpet

altrisi opened this issue ยท 1 comments

commented

Pass a String with the logger name at:

public static final Logger LOG = LogManager.getLogger();

Makes "output viewers" show "Carpet" (or any other string) instead of carpet.CarpetSettings (class name, CarpetSettings depending on output viewer) as the logger name (doesn't change log files, so no need to remove the prefixes in some messages).

Viewers affected by this include the Vanilla launcher output viewer (shown in second column) and some IDEs output viewer (at least it appears in Eclipse).

I was going to make a PR, but didn't do it to prevent conflicts (and because just adding a String in a PR seems overkill), since CarpetSettings is one of the most (if not the most) edited files of the repo.

commented

haven't touched that file since... chain stones. Good idea -> make a PR ;)