-
Notifications
You must be signed in to change notification settings - Fork 458
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for streaming logs for multiple modules at the same time (#…
…1033) * Stream all support * Fix bug and optimize * Cleanup * Fix build * Add/ fix tests * More tests * Fix tests * Add comments * Add comment * Separate out LogRequestItem * Make 8kb to a constant * Move LogRequestItem to core * Fix stylecop issues * Add defaults to LogStreamRequest parameters * Rebase and fix
- Loading branch information
1 parent
880df46
commit 5ce1903
Showing
16 changed files
with
637 additions
and
106 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
21 changes: 21 additions & 0 deletions
21
edge-agent/src/Microsoft.Azure.Devices.Edge.Agent.Core/logs/LogRequestItem.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,21 @@ | ||
// Copyright (c) Microsoft. All rights reserved. | ||
namespace Microsoft.Azure.Devices.Edge.Agent.Core.Logs | ||
{ | ||
using Microsoft.Azure.Devices.Edge.Util; | ||
using Newtonsoft.Json; | ||
|
||
public class LogRequestItem | ||
{ | ||
public LogRequestItem(string id, ModuleLogFilter filter) | ||
{ | ||
this.Id = Preconditions.CheckNonWhiteSpace(id, nameof(id)); | ||
this.Filter = filter ?? ModuleLogFilter.Empty; | ||
} | ||
|
||
[JsonProperty("id")] | ||
public string Id { get; } | ||
|
||
[JsonProperty("filter")] | ||
public ModuleLogFilter Filter { get; } | ||
} | ||
} |
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
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
Oops, something went wrong.