diff --git a/README.md b/README.md index b504c65..03b93f3 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,20 @@ 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. 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() + .CreateLogger(); +``` + * [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). diff --git a/appveyor.yml b/appveyor.yml index a1bc9e3..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/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)$/ \ No newline at end of file + 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 2af005c..c81b706 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-*", "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" } } }