Expand description
Collect error reports and then write them out.
Structs§
Statics§
Functions§
- add_
loaded_ dlc_ root - Record a DLC directory from the vanilla installation.
labelis what it should be called in the error reports. - add_
loaded_ mod_ root - Record a secondary mod to be loaded before the one being validated.
labelis what it should be called in the error reports; ideally only a few characters long. - disable_
ansi_ colors - Disable color in the output.
- emit_
reports - Print all the stored reports to the error output.
Set
jsonif they should be printed as a JSON array. Otherwise they are printed in the default output format. - log
- Store an error report to be emitted when
emit_reportsis called. - pointed_
msg_ 🔒expansion - Expand
Vec<PointedMessage>. That is; for eachPointedMessage, follow its location’s link until such link is no longer available, adding a newly createdPointedMessageto the returnedVecfor each linked location. - register_
ignore_ filter - set_
output_ style - Override the default
OutputStyle. (Controls ansi colors) - set_
predicate 🔒 - Configure the error reporter to only show errors that match this
FilterRule. - set_
show_ loaded_ mods - Configure the error reporter to show errors that are in extra loaded mods. Normally those are filtered out, to only show errors that involve the mod’s code.
- set_
show_ vanilla - Configure the error reporter to show errors that are in the base game code. Normally those are filtered out, to only show errors that involve the mod’s code.
- store_
source_ file - take_
reports - Extract the stored reports, sort them, and return them as a hashmap with the occurrences for each instance of metadata split out.
- will_
maybe_ log - Tests whether the report might be printed. If false, the report will definitely not be printed.