diff --git a/sample/sampleDurableLogger/sampleDurableLogger.csproj b/sample/sampleDurableLogger/sampleDurableLogger.csproj
index 711e7fc..60d199e 100644
--- a/sample/sampleDurableLogger/sampleDurableLogger.csproj
+++ b/sample/sampleDurableLogger/sampleDurableLogger.csproj
@@ -21,7 +21,7 @@
-
+
diff --git a/src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglySink.cs b/src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglySink.cs
index 149fc1b..72c02cd 100644
--- a/src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglySink.cs
+++ b/src/Serilog.Sinks.Loggly/Sinks/Loggly/LogglySink.cs
@@ -17,6 +17,7 @@
using System.Linq;
using System.Threading.Tasks;
using Loggly;
+using Serilog.Debugging;
using Serilog.Events;
using Serilog.Sinks.PeriodicBatching;
@@ -80,7 +81,17 @@ public LogglySink(IFormatProvider formatProvider, int batchSizeLimit, TimeSpan p
/// not both.
protected override async Task EmitBatchAsync(IEnumerable events)
{
- await _client.Log(events.Select(_converter.CreateLogglyEvent));
+ LogResponse response = await _client.Log(events.Select(_converter.CreateLogglyEvent)).ConfigureAwait(false);
+
+ switch (response.Code)
+ {
+ case ResponseCode.Error:
+ SelfLog.WriteLine("LogglySink received an Error response: {0}", response.Message);
+ break;
+ case ResponseCode.Unknown:
+ SelfLog.WriteLine("LogglySink received an Unknown response: {0}", response.Message);
+ break;
+ }
}
}