Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2 Release #111

Merged
merged 13 commits into from
May 15, 2019
11 changes: 0 additions & 11 deletions .travis.yml

This file was deleted.

11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
build:
sh build.sh

test: build
echo "TODO"

run-samples:
docker-compose up --build

kill-samples:
docker-compose down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![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)
[![Join the chat at https://gitter.im/serilog/serilog](https://img.shields.io/gitter/room/serilog/serilog.svg)](https://gitter.im/serilog/serilog)

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.
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`.

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

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

Branch | AppVeyor | Travis
------------- | ------------- |-------------
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)
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)
Branch | AppVeyor
------------- | -------------
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)
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)

_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/)._
44 changes: 27 additions & 17 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,33 @@
version: '{build}'
skip_tags: true
image: Visual Studio 2017
configuration: Release
image:
- Visual Studio 2017
- Ubuntu
configuration:
- Release
build_script:
- ps: ./Build.ps1
- ps: ./Build.ps1
test: off
artifacts:
- path: artifacts/Serilog.*.nupkg
- path: artifacts/Serilog.*.nupkg
for:
-
matrix:
only:
- image: Ubuntu
build_script:
- sh build.sh
deploy:
- provider: NuGet
api_key:
secure: bd9z4P73oltOXudAjPehwp9iDKsPtC+HbgshOrSgoyQKr5xVK+bxJQngrDJkHdY8
skip_symbols: true
on:
branch: /^(master|dev)$/
- provider: GitHub
auth_token:
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
artifact: /Serilog.*\.nupkg/
tag: v$(appveyor_build_version)
on:
branch: master
- provider: NuGet
api_key:
secure: N59tiJECUYpip6tEn0xvdmDAEiP9SIzyLEFLpwiigm/8WhJvBNs13QxzT1/3/JW/
skip_symbols: true
on:
branch: /^(master|dev)$/
- provider: GitHub
auth_token:
secure: p4LpVhBKxGS5WqucHxFQ5c7C8cP74kbNB0Z8k9Oxx/PMaDQ1+ibmoexNqVU5ZlmX
artifact: /Serilog.*\.nupkg/
tag: v$(appveyor_build_version)
on:
branch: master
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dotnet restore
# Until # 65 is addressed build only core package. When available move to netstandard for all packages
for path in src/**/Serilog.Sinks.Splunk.csproj; do
dotnet build -f netstandard1.1 -c Release ${path}
dotnet build -f netstandard1.3 -c Release ${path}
dotnet build -f netstandard2.0 -c Release ${path}
done

for path in test/*.Tests/*.csproj; do
Expand Down
18 changes: 13 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
version: '2'
version: '3'
services:
splunk:
build: ./sample/splunk
image: serilog-splunk
environment:
SPLUNK_START_ARGS: --accept-license --answer-yes --seed-passwd changeme
SPLUNK_ENABLE_LISTEN: 9997
SPLUNK_PASSWORD: changemeplease!
ports:
- 8000:8000
- 8088:8088
- 8089:8089
environment:
SPLUNK_START_ARGS: "--accept-license --answer-yes --seed-passwd changeme"
SPLUNK_USER: "root"
networks:
splunkbase_docker:
sampleconsoleapp:
depends_on:
- "splunk"
build: .
image: serilog-console-sample
image: serilog-console-sample
networks:
splunkbase_docker:
networks:
splunkbase_docker:

2 changes: 0 additions & 2 deletions run_sample.sh

This file was deleted.

4 changes: 1 addition & 3 deletions sample/Sample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static void Main(string[] args)
{
var eventsToCreate = 100;
var runSSL = false;
var millisecsToWait = 30000;
var millisecsToWait = 60000;

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

Serilog.Debugging.SelfLog.Enable(System.Console.Out);
Log.Information("Sample app starting up...");

Log.Information("Waiting {} millisecs...", millisecsToWait);

System.Threading.Thread.Sleep(millisecsToWait);

UsingAppSettingsJson(eventsToCreate);
Expand Down
2 changes: 1 addition & 1 deletion sample/splunk/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
FROM splunk/splunk:7.1.0
FROM splunk/splunk:7.2
ADD etc ${SPLUNK_HOME}/etc
3 changes: 1 addition & 2 deletions src/Serilog.Sinks.Splunk/Serilog.Sinks.Splunk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<Description>The Splunk Sink for Serilog</Description>
<VersionPrefix>3.1.0</VersionPrefix>
<VersionPrefix>3.2.0</VersionPrefix>
<Authors>Matthew Erbs, Serilog Contributors</Authors>
<TargetFrameworks>net45;netstandard1.1;netstandard2.0</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand All @@ -14,7 +14,6 @@
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryUrl>https://github.com/serilog/serilog-sinks-splunk</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<AssemblyOriginatorKeyFile>../../assets/Serilog.snk</AssemblyOriginatorKeyFile>
<PublicSign>true</PublicSign>
<SignAssembly>true</SignAssembly>
Expand Down