-
Notifications
You must be signed in to change notification settings - Fork 66
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
fix process monitor formatting #175
Conversation
As for the PR base, reason we're going for |
@profnandaa main has only the JSON formatting option (there is no log formatting option in config). release/2.2 branch has the This issue will only be noted in rc2.1.0. |
Got it. I think after the merge we can discuss switching the branches so that the code currently shipping can be in |
* feat: adding support for legacy XML log output (#119) * Custom Log Format (#124) * Make JSON the default log format --------- Co-authored-by: Charity Kathure <ckathure@microsoft.com> * Custom JSON Log Sanitization (#128) --------- Co-authored-by: Charity Kathure <ckathure@microsoft.com> * Formatting for scalar integer property values using TdhFormatProperty (#129) --------- Co-authored-by: Bob Sira <bosira@microsoft.com> * docs: configurable / custom log format (#136) --------- Co-authored-by: Charity Kathure <ckathure@microsoft.com> * fix process monitor formatting (#175) --------- Co-authored-by: Charity Kathure <ckathure@microsoft.com> * Process Monitor Custom Logging (#176) Signed-off-by: Charity Kathure <ckathure@microsoft.com> --------- Signed-off-by: Charity Kathure <ckathure@microsoft.com> Co-authored-by: Charity Kathure <ckathure@microsoft.com> * Resolve build error and lint issues, and add process monitor details into the docs Signed-off-by: Charity Kathure <ckathure@microsoft.com> --------- Signed-off-by: Charity Kathure <ckathure@microsoft.com> Co-authored-by: Charity Kathure <ckathure@microsoft.com> Co-authored-by: Bob Sira <sbobfitz2@gmail.com> Co-authored-by: Bob Sira <bosira@microsoft.com> Co-authored-by: Ian King'ori <kingorim.ian@gmail.com>
Addressing issue: #171
Issue Description:
Log Monitor allows users to specify the log format (Custom, JSON, or XML) for ETW, Event logs, and File logs through the respective sections in the config.json file.
However, in the case of process monitor logs, whose specifications are not captured in the config file, the logs should default to JSON unless the user specifies XML as the desired log format.
In the current implementation (in rc2.1.0), the default log format is XML unless JSON is specified. This is why when rc2.1.0 users specify
"logFormat": "custom"
the process monitor logs default to XML format.For example:
This change ensures that the default log format is
JSON