-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement more sophisticated error logging during web refresh
- Loading branch information
1 parent
2fdf978
commit fbdfcd5
Showing
6 changed files
with
91 additions
and
9 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
18 changes: 18 additions & 0 deletions
18
NeptunLight/NeptunLight.Android/Services/AppCenterLogger.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,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Microsoft.AppCenter.Crashes; | ||
using NeptunLight.Services; | ||
|
||
namespace NeptunLight.Droid.Services | ||
{ | ||
/// <summary> | ||
/// Implements <see cref="ILogger"/> using the AppCenter SDK | ||
/// </summary> | ||
public class AppCenterLogger : ILogger | ||
{ | ||
public void LogError(Exception ex, Dictionary<string, string> context = null) | ||
{ | ||
Crashes.TrackError(ex, context); | ||
} | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace NeptunLight.Services | ||
{ | ||
public interface ILogger | ||
{ | ||
void LogError(Exception ex, Dictionary<string, string> context = null); | ||
} | ||
} |