-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Logging behaviour doc #10859
base: main
Are you sure you want to change the base?
Logging behaviour doc #10859
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks very helpful!!
There are various types of messages within MSBuild with different importances and purposes. . | ||
There are some message types that are built-in within the engine, `errors`, `warnings`, and MSBuild engine information. The custom messages, that can come either from the engine or other sources, are selected and displayed based on the `importance` of the message. There can be high, normal, and low importance messages being displayed. | ||
|
||
For more information on custom messages you can more ou Microsoft Learn page for the [MSBuild Message Task](https://learn.microsoft.com/visualstudio/msbuild/message-task) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Words order got broken here :-)
The File logger saves all the build data to a file. It's verbosity is determined by passing the `verbosity` parameter to the `flp` attribute, or the default is set to `diagnostic`, and it follows the same message display rules as the console logger. | ||
|
||
### Binary logger / build logger | ||
The binary logger is a bit different as it does not have a verbosity option. It includes all messages, projects and files from the build by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The binary logger is a bit different as it does not have a verbosity option. It includes all messages, projects and files from the build by default. | |
The binary logger does not have a verbosity option. It includes all messages, projects and files from the build by default. |
| Low-importance messages | | ||
| MSBuild engine information | | ||
|
||
### File logger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd reorder to make it correspond with how often we'd expect people use the different loggers:
- TL
- BL
- CL
- FL (it references CL so they should be together imo)
Fixes #10676
Context
There has some confusion about which logs display what type of message. This is to clarify what is to be expected from each logger and verbosity.