Skip to content
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

EdgeAgent: Add logs provider #930

Merged
merged 13 commits into from
Mar 12, 2019
Merged

Conversation

varunpuranik
Copy link
Contributor

Add a LogsProvider class that processes the logs obtained from iotedged, including deframing them, parsing them, compressing them, etc.
Next step will be to hook it all up to support uploading the logs/streaming the logs.

@@ -15,6 +17,8 @@ public interface IRuntimeInfoProvider
{
Task<IEnumerable<ModuleRuntimeInfo>> GetModules(CancellationToken ctsToken);

Task<Stream> GetModuleLogs(string module, bool follow, Option<int> tail, CancellationToken cancellationToken);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: ctsToken, same as above.

@@ -40,4 +41,12 @@
<CodeAnalysisRuleSet>..\..\..\stylecop.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<Import Project="..\..\..\stylecop.props" />

<Target Name="ChangeAliasOfAkkaNet" BeforeTargets="FindReferenceAssembliesForReferences;ResolveReferences">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why need this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Akka has some types which have the same name as the types we use elsewhere. So we need to quality the akka types with an alias.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should no longer be necessary since Akka.NET v1.4 - we were able to remove most of those type aliases now that we've moved onto .NET Standard 2.0.

myagley
myagley previously approved these changes Mar 12, 2019
@varunpuranik varunpuranik merged commit 6bc92d2 into Azure:master Mar 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants