Skip to content

Commit fe81dd4

Browse files
authored
Merge pull request #111 from serilog/dev
3.2 Release
2 parents ade9df9 + bfa1914 commit fe81dd4

File tree

10 files changed

+60
-47
lines changed

10 files changed

+60
-47
lines changed

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
build:
2+
sh build.sh
3+
4+
test: build
5+
echo "TODO"
6+
7+
run-samples:
8+
docker-compose up --build
9+
10+
kill-samples:
11+
docker-compose down

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![Build status](https://ci.appveyor.com/api/projects/status/yt40wg34t8oj61al?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-splunk) ![NuGet Version](https://buildstats.info/nuget/Serilog.Sinks.Splunk)
44
[![Join the chat at https://gitter.im/serilog/serilog](https://img.shields.io/gitter/room/serilog/serilog.svg)](https://gitter.im/serilog/serilog)
55

6-
A Serilog sink that writes events to the [Splunk](https://splunk.com). Supports .NET 4.5+, .NET Core, and platforms compatible with the [.NET Platform Standard](https://github.com/dotnet/corefx/blob/master/Documentation/architecture/net-platform-standard.md) 1.1 including Windows 8 & UWP, Windows Phone and Xamarin.
6+
A Serilog sink that writes events to the [Splunk](https://splunk.com). Supports .NET 4.5+, .NET Core, and platforms compatible with the [.NET Platform Standard](https://docs.microsoft.com/en-us/dotnet/standard/net-standard) `net45`, `netstandard1.1`, `netstandard2.0`.
77

88
[![Package Logo](https://serilog.net/images/serilog-sink-nuget.png)](https://nuget.org/packages/serilog.sinks.splunk)
99

@@ -64,9 +64,9 @@ If using `appsettings.json` for configuration the following example illustrates
6464
More information about Serilog is available on the [wiki](https://github.com/serilog/serilog-sinks-splunk/wiki).
6565
### Build status
6666

67-
Branch | AppVeyor | Travis
68-
------------- | ------------- |-------------
69-
master | [![Build status](https://ci.appveyor.com/api/projects/status/yt40wg34t8oj61al/branch/master?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-splunk/branch/master) | ![](https://travis-ci.org/serilog/serilog-sinks-splunk.svg?branch=master)
70-
dev | [![Build status](https://ci.appveyor.com/api/projects/status/yt40wg34t8oj61al/branch/dev?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-splunk/branch/dev) | ![](https://travis-ci.org/serilog/serilog-sinks-splunk.svg?branch=dev)
67+
Branch | AppVeyor
68+
------------- | -------------
69+
master | [![Build status](https://ci.appveyor.com/api/projects/status/yt40wg34t8oj61al/branch/master?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-splunk/branch/master)
70+
dev | [![Build status](https://ci.appveyor.com/api/projects/status/yt40wg34t8oj61al/branch/dev?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-splunk/branch/dev)
7171

7272
_Serilog is copyright © 2013-2016 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html). Needle and thread logo a derivative of work by [Kenneth Appiah](http://www.kensets.com/)._

appveyor.yml

Lines changed: 27 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
11
version: '{build}'
22
skip_tags: true
3-
image: Visual Studio 2017
4-
configuration: Release
3+
image:
4+
- Visual Studio 2017
5+
- Ubuntu
6+
configuration:
7+
- Release
58
build_script:
6-
- ps: ./Build.ps1
9+
- ps: ./Build.ps1
710
test: off
811
artifacts:
9-
- path: artifacts/Serilog.*.nupkg
12+
- path: artifacts/Serilog.*.nupkg
13+
for:
14+
-
15+
matrix:
16+
only:
17+
- image: Ubuntu
18+
build_script:
19+
- sh build.sh
1020
deploy:
11-
- provider: NuGet
12-
api_key:
13-
secure: bd9z4P73oltOXudAjPehwp9iDKsPtC+HbgshOrSgoyQKr5xVK+bxJQngrDJkHdY8
14-
skip_symbols: true
15-
on:
16-
branch: /^(master|dev)$/
17-
- provider: GitHub
18-
auth_token:
19-
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
20-
artifact: /Serilog.*\.nupkg/
21-
tag: v$(appveyor_build_version)
22-
on:
23-
branch: master
21+
- provider: NuGet
22+
api_key:
23+
secure: N59tiJECUYpip6tEn0xvdmDAEiP9SIzyLEFLpwiigm/8WhJvBNs13QxzT1/3/JW/
24+
skip_symbols: true
25+
on:
26+
branch: /^(master|dev)$/
27+
- provider: GitHub
28+
auth_token:
29+
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
30+
artifact: /Serilog.*\.nupkg/
31+
tag: v$(appveyor_build_version)
32+
on:
33+
branch: master

build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dotnet restore
66
# Until # 65 is addressed build only core package. When available move to netstandard for all packages
77
for path in src/**/Serilog.Sinks.Splunk.csproj; do
88
dotnet build -f netstandard1.1 -c Release ${path}
9-
dotnet build -f netstandard1.3 -c Release ${path}
9+
dotnet build -f netstandard2.0 -c Release ${path}
1010
done
1111

1212
for path in test/*.Tests/*.csproj; do

docker-compose.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,25 @@
1-
version: '2'
1+
version: '3'
22
services:
33
splunk:
44
build: ./sample/splunk
55
image: serilog-splunk
6+
environment:
7+
SPLUNK_START_ARGS: --accept-license --answer-yes --seed-passwd changeme
8+
SPLUNK_ENABLE_LISTEN: 9997
9+
SPLUNK_PASSWORD: changemeplease!
610
ports:
711
- 8000:8000
812
- 8088:8088
913
- 8089:8089
10-
environment:
11-
SPLUNK_START_ARGS: "--accept-license --answer-yes --seed-passwd changeme"
12-
SPLUNK_USER: "root"
14+
networks:
15+
splunkbase_docker:
1316
sampleconsoleapp:
1417
depends_on:
1518
- "splunk"
1619
build: .
17-
image: serilog-console-sample
20+
image: serilog-console-sample
21+
networks:
22+
splunkbase_docker:
23+
networks:
24+
splunkbase_docker:
25+

run_sample.sh

Lines changed: 0 additions & 2 deletions
This file was deleted.

sample/Sample/Program.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static void Main(string[] args)
1717
{
1818
var eventsToCreate = 100;
1919
var runSSL = false;
20-
var millisecsToWait = 30000;
20+
var millisecsToWait = 60000;
2121

2222
if (args.Length > 0)
2323
eventsToCreate = int.Parse(args[0]);
@@ -30,9 +30,7 @@ public static void Main(string[] args)
3030

3131
Serilog.Debugging.SelfLog.Enable(System.Console.Out);
3232
Log.Information("Sample app starting up...");
33-
3433
Log.Information("Waiting {} millisecs...", millisecsToWait);
35-
3634
System.Threading.Thread.Sleep(millisecsToWait);
3735

3836
UsingAppSettingsJson(eventsToCreate);

sample/splunk/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
FROM splunk/splunk:7.1.0
1+
FROM splunk/splunk:7.2
22
ADD etc ${SPLUNK_HOME}/etc

src/Serilog.Sinks.Splunk/Serilog.Sinks.Splunk.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>The Splunk Sink for Serilog</Description>
5-
<VersionPrefix>3.1.0</VersionPrefix>
5+
<VersionPrefix>3.2.0</VersionPrefix>
66
<Authors>Matthew Erbs, Serilog Contributors</Authors>
77
<TargetFrameworks>net45;netstandard1.1;netstandard2.0</TargetFrameworks>
88
<GenerateDocumentationFile>true</GenerateDocumentationFile>
@@ -14,7 +14,6 @@
1414
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
1515
<RepositoryUrl>https://github.com/serilog/serilog-sinks-splunk</RepositoryUrl>
1616
<RepositoryType>git</RepositoryType>
17-
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
1817
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
1918
<PublicSign>true</PublicSign>
2019
<SignAssembly>true</SignAssembly>

0 commit comments

Comments
 (0)