This repository was archived by the owner on Oct 12, 2022. It is now read-only.
ILogger - Exception.Message is populated as ExceptionTelemetry.Message, Bump version#282
Merged
cijothomas merged 6 commits intodevelopfrom May 1, 2019
Merged
Conversation
… populated as ExceptionTelemetry.Message. Bump version
Member
|
How does this behave when users use LogError with exception object in it? I think we might be regressing that here. |
Dmitry-Matveev
approved these changes
Apr 26, 2019
Contributor
Author
|
@RamjotSingh i have edited to give example. (I submitted PR with empty description, sorry) |
Contributor
Author
|
/azp run |
Contributor
Author
|
/AzurePipelines run |
Contributor
Author
|
/AzurePipelines help |
|
For the Azure DevOps organization |
1 similar comment
|
For the Azure DevOps organization |
Supported commands
help:
Get descriptions, examples and documentation about supported commands
Example: help "command_name"
run:
Run all pipelines or a specific pipeline for this repository using a comment. Use
this command by itself to trigger all related pipelines, or specify a pipeline
to run.
Example: "run" or "run pipeline_name"
See additional documentation.
|
lmolkova
suggested changes
Apr 27, 2019
lmolkova
approved these changes
May 1, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ILogger - If an exception is passed to log, then Exception.Message is populated as ExceptionTelemetry.Message.
If TrackExceptionsAsExceptionTelemetry is false, then Exception.Message is stored as custom property "ExceptionMessage"
Foe example, consider the following log call.
testLogger.LogError(new Exception("ExceptionMessage"), "LoggerMessage");
The ExceptionTelemetry created will contain "ExceptionMessage" in its Message field. "LoggerMessage" will be in custom property "FormattedMessage"
If TrackExceptionsAsExceptionTelemetry is false, then TraceTelemetry is created, and "LoggerMessage" will be in its Message field. "ExceptionMessage" will be in custom property "ExceptionMessage"
Prior to this, when an exception is passed to log, its Exception.Message was not stored anywhere.
Also bumped and updated versions.