documentation/terminallogger/Opt-In-Mechanism.md
The TerminalLogger presents the user with the build's most relevant information at the time, automatically hiding all the information that is no longer relevant (as to prevent huge log outputs). However, many users might find this not very useful (or even counterproductive) such as those using a terminal without proper ANSI support or when redirecting the output to a file. For that reason, the users must be able to turn this feature on/off at will.
Using the /terminallogger or /tl command line switches, users are able to opt-in and use the TerminalLogger, EXCEPT when:
Users can set the MSBUILDTERMINALLOGGER environment variable to enable TerminalLogger without adding a swtich to all build invocations.
Both methods accept parameters:
true forces TerminalLogger to be used even wwhen it would be disabledfalse forces TerminalLogger to not be used even when it would be enabledauto enables TerminalLogger when the terminal supports it and the session doesn't have redirected stdout/stderrIn cases where the TerminalLogger should not be enabled, the default ConsoleLogger should be used instead.
TerminalLogger should only replace the current ConsoleLogger for the aforementioned cases. Additionally, other loggers can be used in conjunction.
/noconsolelogger flag enabled?TerminalLogger serves as a replacement for ConsoleLogger, so it should behave similarly. When attaching the /noconsolelogger flag, it should not output anything.