-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from JanKrivanek/proto/Env-vars-args-update
Update Log format to recognize changes in EnvVarArgs
- Loading branch information
Showing
4 changed files
with
56 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
33 changes: 33 additions & 0 deletions
33
src/StructuredLogger/BinaryLogger/EnvironmentVariableReadEventArgs2.cs
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using Microsoft.Build.Framework; | ||
|
||
namespace StructuredLogger.BinaryLogger | ||
{ | ||
public class EnvironmentVariableReadEventArgs2 : EnvironmentVariableReadEventArgs | ||
{ | ||
/// <summary> | ||
/// Initializes an instance of the EnvironmentVariableReadEventArgs class. | ||
/// </summary> | ||
/// <param name="environmentVarName">The name of the environment variable that was read.</param> | ||
/// <param name="environmentVarValue">The value of the environment variable that was read.</param> | ||
/// <param name="file">file associated with the event</param> | ||
/// <param name="line">line number (0 if not applicable)</param> | ||
/// <param name="column">column number (0 if not applicable)</param> | ||
public EnvironmentVariableReadEventArgs2( | ||
string environmentVarName, | ||
string environmentVarValue, | ||
string file, | ||
int line, | ||
int column) | ||
: base(environmentVarName, environmentVarValue) | ||
{ | ||
LineNumber = line; | ||
ColumnNumber = column; | ||
File = file; | ||
} | ||
|
||
// the properties in the base class have an internal setter | ||
public new int LineNumber { get; set; } | ||
public new int ColumnNumber { get; set; } | ||
public new string File { get; set; } | ||
} | ||
} |