diff --git a/src/Templates/EventHandlers/.created.cs.txt b/src/Templates/EventHandlers/.created.cs.txt index 8c2b1e3..cbfd9f3 100644 --- a/src/Templates/EventHandlers/.created.cs.txt +++ b/src/Templates/EventHandlers/.created.cs.txt @@ -15,7 +15,7 @@ public class {itemname}CreatedEventHandler : INotificationHandler<{itemname}Crea } public Task Handle({itemname}CreatedEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().FullName); + _logger.LogInformation("Handled domain event '{EventType}' with notification: {@Notification} ", notification.GetType().Name, notification); return Task.CompletedTask; } } diff --git a/src/Templates/EventHandlers/.deleted.cs.txt b/src/Templates/EventHandlers/.deleted.cs.txt index 7744a16..d3df4bd 100644 --- a/src/Templates/EventHandlers/.deleted.cs.txt +++ b/src/Templates/EventHandlers/.deleted.cs.txt @@ -15,7 +15,7 @@ namespace {namespace}; } public Task Handle({itemname}DeletedEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().FullName); + _logger.LogInformation("Handled domain event '{EventType}' with notification: {@Notification} ", notification.GetType().Name, notification); return Task.CompletedTask; } } diff --git a/src/Templates/EventHandlers/.updated.cs.txt b/src/Templates/EventHandlers/.updated.cs.txt index ea22262..2c373ef 100644 --- a/src/Templates/EventHandlers/.updated.cs.txt +++ b/src/Templates/EventHandlers/.updated.cs.txt @@ -15,7 +15,7 @@ namespace {namespace}; } public Task Handle({itemname}UpdatedEvent notification, CancellationToken cancellationToken) { - _logger.LogInformation("Domain Event: {DomainEvent}", notification.GetType().FullName); + _logger.LogInformation("Handled domain event '{EventType}' with notification: {@Notification} ", notification.GetType().Name, notification); return Task.CompletedTask; } }