Closed ScribbleTAS closed 1 year ago
Add a custom log4jconfig to the mod which allows markers, ansi-coloring and debug log level
Markers allow you to filter log messages later To add a marker to log messages use:
TASmod.logger.info(LoggerMarkers.Event, "Message");
This message can then later be disabled with
-Dtasmod.marker.event=DENY
A new marker has to be added in the log4j.xml like this under <Filters>:
<Filters>
<MarkerFilter marker="Event" onMatch="${sys:tasmod.marker.event:-ACCEPT}" onMismatch="NEUTRAL" />
The TASmod logger now has a seperate log level from the regular fabric one. It can be accessed with
-Dtasmod.log.level=INFO
Markers to be added:
Closes #154
Add a custom log4jconfig to the mod which allows markers, ansi-coloring and debug log level
Markers
Markers allow you to filter log messages later
To add a marker to log messages use:
This message can then later be disabled with
A new marker has to be added in the log4j.xml like this under
<Filters>
:TASmod log level
The TASmod logger now has a seperate log level from the regular fabric one.
It can be accessed with
Misc
Todo
Markers to be added:
Closes #154