diff --git a/README.md b/README.md index 12b9210..d2ef981 100644 --- a/README.md +++ b/README.md @@ -49,8 +49,8 @@ In practice, this configuration (assuming one provisions an adequate `bufferSize // Example check: log message to an out of band alarm channel if logging is showing signs of getting overwhelmed void ExecuteAsyncBufferCheck(IAsyncLogEventSinkInspector inspector) { - var usagePct = inspector.Count * 100 / inspector.BoundedCapacity; - if (usagePct > 50) SelfLog.WriteLine("Log buffer exceeded {0:p0} usage (limit: {1})", usagePct, inspector.BoundedCapacity); + var usagePct = inspector.Count * 100 / inspector.BufferSize; + if (usagePct > 50) SelfLog.WriteLine("Log buffer exceeded {0:p0} usage (limit: {1})", usagePct, inspector.BufferSize); } class MonitorConfiguration : IAsyncLogEventSinkMonitor diff --git a/appveyor.yml b/appveyor.yml index 9f03018..d342c71 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -9,7 +9,7 @@ artifacts: deploy: - provider: NuGet api_key: - secure: mnSqLheecloK/7XS+OjiDMlttTzhMTRyT2e9AUnS7aHR5AimjOD9vQtfodwagacH + secure: rbdBqxBpLt4MkB+mrDOYNDOd8aVZ1zMkysaVNAXNKnC41FYifzX3l9LM8DCrUWU5 skip_symbols: true on: branch: /^(master|dev)$/ diff --git a/assets/serilog-sink-nuget.png b/assets/serilog-sink-nuget.png new file mode 100644 index 0000000..a77d65c Binary files /dev/null and b/assets/serilog-sink-nuget.png differ diff --git a/src/Serilog.Sinks.Async/Serilog.Sinks.Async.csproj b/src/Serilog.Sinks.Async/Serilog.Sinks.Async.csproj index 382912f..40dafa7 100644 --- a/src/Serilog.Sinks.Async/Serilog.Sinks.Async.csproj +++ b/src/Serilog.Sinks.Async/Serilog.Sinks.Async.csproj @@ -1,9 +1,8 @@ - + Asynchronous sink wrapper for Serilog. - 1.4.0.0 - 1.4.0 + 1.5.0 Jezz Santos;Serilog Contributors net45;netstandard1.1;net461;netstandard2.0 true @@ -15,9 +14,9 @@ true Serilog.Sinks.Async serilog;async - https://serilog.net/images/serilog-sink-nuget.png + serilog-sink-nuget.png https://serilog.net - Apache-2.0 + Apache-2.0 https://github.com/serilog/serilog-sinks-async git True @@ -29,7 +28,7 @@ - + @@ -37,4 +36,11 @@ + + + True + + + +