Where the lowercase letter in the <tag> correlates to a std.experimental.LogLevel, the same way we've been using them with kameloso.common.Tint so far. <i> is LogLevel.info, <w> is LogLevel.warning, </> is LogLevel.off, etc.
The immediate advantage of this is that things become considerably more legible. Mistakes are easier to spot. The immediate disadvantage is that all our coloured output is now untested overnight and may have things like format specifier/parameter mismatches. It's hard to test.
Compile-time memory use went down slightly at least, so there's at least that.
This changes colouring from using the the quite frankly unreadable format specifier
Tint
ing to using custom colour<tags>
....becomes...
Where the lowercase letter in the
<tag>
correlates to astd.experimental.LogLevel
, the same way we've been using them withkameloso.common.Tint
so far.<i>
isLogLevel.info
,<w>
isLogLevel.warning
,</>
isLogLevel.off
, etc.The immediate advantage of this is that things become considerably more legible. Mistakes are easier to spot. The immediate disadvantage is that all our coloured output is now untested overnight and may have things like format specifier/parameter mismatches. It's hard to test.
Compile-time memory use went down slightly at least, so there's at least that.