Skip to content

Commit

Permalink
Updated CHANGE-LOG.md and added DefaultTags example.
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-haydon committed Dec 8, 2024
1 parent c36d906 commit 62f3089
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGE-LOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Full Change Log for Raygun4Net.* packages

### v11.2.0
- Add new `IMessageBuilder` interface to allow for custom message builders
- New `Mindscape.Raygun4Net.Extensions.Logging` package
- See: https://github.com/MindscapeHQ/raygun4net/pull/553

### v11.1.3
- Skip serializing `WinRT.ObjectReferenceWithContext<WinRT.Interop.IUnknownVftbl>` objects attached to the Exception.Data to avoid AccessViolationException.
- See: https://github.com/MindscapeHQ/raygun4net/pull/549
Expand Down
14 changes: 13 additions & 1 deletion Raygun4Net.MSLogger.AspNetCore.Tests/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
{
settings.ApiKey = "*your_api_key*";
});
builder.Services.AddSingleton<IMessageBuilder, DefaultTags>();

// (Optional) Registers the Raygun User Provider
builder.Services.AddRaygunUserProvider();
Expand Down Expand Up @@ -43,4 +44,15 @@
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}");

app.Run();
app.Run();


public class DefaultTags : IMessageBuilder
{
public Task<RaygunMessage> Apply(RaygunMessage message, Exception exception)
{
message.Details.Tags.Add("DefaultTag");

return Task.FromResult(message);
}
}

0 comments on commit 62f3089

Please sign in to comment.