log
This commit is contained in:
parent
9c8dd1fb06
commit
5340e112b1
15
src/TrackCenter.Api/ExceptionNotifier.cs
Normal file
15
src/TrackCenter.Api/ExceptionNotifier.cs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
using Fake.DependencyInjection;
|
||||||
|
using Fake.ExceptionHandling;
|
||||||
|
using TrackCenter.Domain.Extensions;
|
||||||
|
|
||||||
|
namespace TrackCenter.Api;
|
||||||
|
|
||||||
|
public class ExceptionNotifier: IExceptionNotifier, ITransientDependency
|
||||||
|
{
|
||||||
|
public Task NotifyAsync(ExceptionNotificationContext context)
|
||||||
|
{
|
||||||
|
LogHelper.Error(context.Exception.ToString());
|
||||||
|
|
||||||
|
return Task.CompletedTask;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user