From 1f3045bbe111420c3e09f4aec275741564f9a825 Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Fri, 27 May 2016 08:40:32 +1000 Subject: [PATCH 1/5] Updated to RC2 --- src/Serilog.Sinks.Console/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Serilog.Sinks.Console/project.json b/src/Serilog.Sinks.Console/project.json index 2af005c..20aa120 100644 --- a/src/Serilog.Sinks.Console/project.json +++ b/src/Serilog.Sinks.Console/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-beta-*", + "version": "2.0.0-rc-*", "description": "The console sink for Serilog.", "authors": [ "Serilog Contributors" From 782d93f4c0a902a1829f9e702d00d2314aca36cd Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Fri, 27 May 2016 08:51:38 +1000 Subject: [PATCH 2/5] Updated build to use new dotnet-install.ps1 --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index a1bc9e3..defa976 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ image: Visual Studio 2015 configuration: Release install: - ps: mkdir -Force ".\build\" | Out-Null - - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.ps1" -OutFile ".\build\installcli.ps1" + - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1" - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli" - ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath' - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" @@ -18,4 +18,4 @@ deploy: secure: nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x skip_symbols: true on: - branch: /^(dev|master)$/ \ No newline at end of file + branch: /^(dev|master)$/ From c2ffd6e552fcb53f159f6e0fb4a2efc558143f32 Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Fri, 27 May 2016 10:46:12 +1000 Subject: [PATCH 3/5] Moved sample code from Wiki [Skip CI] --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index b504c65..6351b3e 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,19 @@ The console sink for Serilog. [![Build status](https://ci.appveyor.com/api/projects/status/w1w3m1wyk3in1c96/branch/master?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-console/branch/master) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Sinks.Console.svg?style=flat)](https://www.nuget.org/packages/Serilog.Sinks.Console/) +Writes to the system console, using colour to emphasise levels and to highlight structured data within log messages. Makes the ordinary console sink look ordinary! (_See also: [Literate Console](https://github.com/serilog/serilog-sinks-literate)_) + +```csharp +var log = new LoggerConfiguration() + .WriteTo.ColoredConsole() + .CreateLogger(); +``` +Or in XML [app-settings format](https://github.com/serilog/serilog/wiki/AppSettings): + +```xml + +``` + * [Documentation](https://github.com/serilog/serilog/wiki) Copyright © 2016 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html). From 1dec4f2da4b013e79f0cb10e01f43ff5c2a2b4cf Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Fri, 27 May 2016 10:46:53 +1000 Subject: [PATCH 4/5] Corrections [Skip CI] --- README.md | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 6351b3e..54ba528 100644 --- a/README.md +++ b/README.md @@ -4,18 +4,13 @@ The console sink for Serilog. [![Build status](https://ci.appveyor.com/api/projects/status/w1w3m1wyk3in1c96/branch/master?svg=true)](https://ci.appveyor.com/project/serilog/serilog-sinks-console/branch/master) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Sinks.Console.svg?style=flat)](https://www.nuget.org/packages/Serilog.Sinks.Console/) -Writes to the system console, using colour to emphasise levels and to highlight structured data within log messages. Makes the ordinary console sink look ordinary! (_See also: [Literate Console](https://github.com/serilog/serilog-sinks-literate)_) +Writes to the system console. The colored console sink's boring cousin. ```csharp var log = new LoggerConfiguration() - .WriteTo.ColoredConsole() + .WriteTo.Console() .CreateLogger(); ``` -Or in XML [app-settings format](https://github.com/serilog/serilog/wiki/AppSettings): - -```xml - -``` * [Documentation](https://github.com/serilog/serilog/wiki) From ec6b1aeae63018b89430a926d32bb615be9ad614 Mon Sep 17 00:00:00 2001 From: Matthew Erbs Date: Tue, 28 Jun 2016 19:17:13 +1000 Subject: [PATCH 5/5] Changes for 2.0 release including package dependencies. --- README.md | 6 ++++++ appveyor.yml | 14 +++++++++++--- src/Serilog.Sinks.Console/project.json | 6 +++--- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 54ba528..03b93f3 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,12 @@ The console sink for Serilog. Writes to the system console. The colored console sink's boring cousin. +To use the console sink, first install the NuGet package: + +```powershell +Install-Package Serilog.Sinks.Console +``` + ```csharp var log = new LoggerConfiguration() .WriteTo.Console() diff --git a/appveyor.yml b/appveyor.yml index defa976..580b871 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,11 +1,12 @@ version: '{build}' +skip_tags: true image: Visual Studio 2015 configuration: Release install: - ps: mkdir -Force ".\build\" | Out-Null - - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1" + - ps: Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2/scripts/obtain/dotnet-install.ps1" -OutFile ".\build\installcli.ps1" - ps: $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli" - - ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath' + - ps: '& .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath -Version 1.0.0-preview2-003121' - ps: $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path" build_script: - ps: ./Build.ps1 @@ -18,4 +19,11 @@ deploy: secure: nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x skip_symbols: true on: - branch: /^(dev|master)$/ + branch: /^(master)$/ +- provider: GitHub + auth_token: + secure: Bo3ypKpKFxinjR9ShkNekNvkob2iklHJU+UlYyfHtcFFIAa58SV2TkEd0xWxz633 + artifact: /Serilog.*\.nupkg/ + tag: v$(appveyor_build_version) + on: + branch: master \ No newline at end of file diff --git a/src/Serilog.Sinks.Console/project.json b/src/Serilog.Sinks.Console/project.json index 20aa120..c81b706 100644 --- a/src/Serilog.Sinks.Console/project.json +++ b/src/Serilog.Sinks.Console/project.json @@ -1,5 +1,5 @@ { - "version": "2.0.0-rc-*", + "version": "2.0.0-*", "description": "The console sink for Serilog.", "authors": [ "Serilog Contributors" @@ -14,7 +14,7 @@ "iconUrl": "http://serilog.net/images/serilog-sink-nuget.png" }, "dependencies": { - "Serilog": "2.0.0-rc-556" + "Serilog": "2.0.0" }, "buildOptions": { "keyFile": "../../assets/Serilog.snk" @@ -23,7 +23,7 @@ "net4.5": {}, "netstandard1.3": { "dependencies": { - "System.Console": "4.0.0-rc2-24027" + "System.Console": "4.0.0" } } }