Skip to content

Commit

Permalink
release v8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
FantasticFiasco committed Apr 10, 2022
1 parent e62126d commit ee9cbb2
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 209 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This project adheres to [Semantic Versioning](http://semver.org/) and is followi

## Unreleased

## [8.0.0] - 2022-04-10

### :zap: Added

- [#116](https://github.com/FantasticFiasco/serilog-sinks-http/issues/116) [BREAKING CHANGE] Support specifying `batchSizeLimitBytes` when creating the sink, thus limiting the size of the payloads sent to the log server (proposed by [@michaeltdaniels](https://github.com/michaeltdaniels))
Expand Down
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

<PropertyGroup>
<VersionPrefix>8.0.0</VersionPrefix>
<VersionSuffix>beta.11</VersionSuffix>
<VersionSuffix></VersionSuffix>
<Authors>Mattias Kindborg</Authors>
<Copyright>Copyright 2015-2021 Serilog Contributors</Copyright>
<Copyright>Copyright 2015-2022 Serilog Contributors</Copyright>
<Company />
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<NoWarn>1591;NU5105</NoWarn>
Expand Down
175 changes: 0 additions & 175 deletions README-v8.md

This file was deleted.

63 changes: 31 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[![Join the chat at https://gitter.im/serilog/serilog](https://img.shields.io/gitter/room/serilog/serilog.svg)](https://gitter.im/serilog/serilog)
[![Help](https://img.shields.io/badge/stackoverflow-serilog-orange.svg)](http://stackoverflow.com/questions/tagged/serilog)

**Package** - [Serilog.Sinks.Http](https://www.nuget.org/packages/serilog.sinks.http) | **Platforms** - .NET 4.5/4.6.1, .NET Standard 1.3/2.0/2.1
**Package** - [Serilog.Sinks.Http](https://www.nuget.org/packages/serilog.sinks.http) | **Platforms** - .NET 4.5/4.6.1, .NET Standard 2.0/2.1

## Table of contents <!-- omit in toc -->

Expand Down Expand Up @@ -40,7 +40,7 @@ In the following example, the sink will POST log events to `http://www.mylogs.co
```csharp
ILogger log = new LoggerConfiguration()
.MinimumLevel.Verbose()
.WriteTo.Http(requestUri: "https://www.mylogs.com")
.WriteTo.Http(requestUri: "https://www.mylogs.com", queueLimitBytes: null)
.CreateLogger();

log.Information("Logging {@Heartbeat} from {Computer}", heartbeat, computer);
Expand All @@ -56,7 +56,8 @@ Used in conjunction with [Serilog.Settings.Configuration](https://github.com/ser
{
"Name": "Http",
"Args": {
"requestUri": "https://www.mylogs.com"
"requestUri": "https://www.mylogs.com",
"queueLimitBytes": null
}
}
]
Expand All @@ -69,36 +70,34 @@ The sink can also be configured to be durable, i.e. log events are persisted on
The sink is batching multiple log events into a single request, and the following hypothetical payload is sent over the network as JSON.

```json
{
"events": [
{
"Timestamp": "2016-11-03T00:09:11.4899425+01:00",
"Level": "Information",
"MessageTemplate": "Logging {@Heartbeat} from {Computer}",
"RenderedMessage": "Logging { UserName: \"Mike\", UserDomainName: \"Home\" } from \"Workstation\"",
"Properties": {
"Heartbeat": {
"UserName": "Mike",
"UserDomainName": "Home"
},
"Computer": "Workstation"
}
},
{
"Timestamp": "2016-11-03T00:09:12.4905685+01:00",
"Level": "Information",
"MessageTemplate": "Logging {@Heartbeat} from {Computer}",
"RenderedMessage": "Logging { UserName: \"Mike\", UserDomainName: \"Home\" } from \"Workstation\"",
"Properties": {
"Heartbeat": {
"UserName": "Mike",
"UserDomainName": "Home"
},
"Computer": "Workstation"
}
[
{
"Timestamp": "2016-11-03T00:09:11.4899425+01:00",
"Level": "Information",
"MessageTemplate": "Logging {@Heartbeat} from {Computer}",
"RenderedMessage": "Logging { UserName: \"Mike\", UserDomainName: \"Home\" } from \"Workstation\"",
"Properties": {
"Heartbeat": {
"UserName": "Mike",
"UserDomainName": "Home"
},
"Computer": "Workstation"
}
]
}
},
{
"Timestamp": "2016-11-03T00:09:12.4905685+01:00",
"Level": "Information",
"MessageTemplate": "Logging {@Heartbeat} from {Computer}",
"RenderedMessage": "Logging { UserName: \"Mike\", UserDomainName: \"Home\" } from \"Workstation\"",
"Properties": {
"Heartbeat": {
"UserName": "Mike",
"UserDomainName": "Home"
},
"Computer": "Workstation"
}
}
]
```

## Typical use cases
Expand Down

0 comments on commit ee9cbb2

Please sign in to comment.