File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed
src/Serilog.Sinks.Console Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,20 @@ The console sink for Serilog.
44
55[ ![ 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/ )
66
7+ Writes to the system console. The colored console sink's boring cousin.
8+
9+ To use the console sink, first install the NuGet package:
10+
11+ ``` powershell
12+ Install-Package Serilog.Sinks.Console
13+ ```
14+
15+ ``` csharp
16+ var log = new LoggerConfiguration ()
17+ .WriteTo .Console ()
18+ .CreateLogger ();
19+ ```
20+
721* [ Documentation] ( https://github.com/serilog/serilog/wiki )
822
923Copyright © ; 2016 Serilog Contributors - Provided under the [ Apache License, Version 2.0] ( http://apache.org/licenses/LICENSE-2.0.html ) .
Original file line number Diff line number Diff line change 11version : ' {build}'
2+ skip_tags : true
23image : Visual Studio 2015
34configuration : Release
45install :
56 - ps : mkdir -Force ".\build\" | Out-Null
6- - ps : Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0/scripts/obtain/install.ps1" -OutFile ".\build\installcli.ps1"
7+ - ps : Invoke-WebRequest "https://raw.githubusercontent.com/dotnet/cli/rel/1.0.0-preview2 /scripts/obtain/dotnet- install.ps1" -OutFile ".\build\installcli.ps1"
78 - ps : $env:DOTNET_INSTALL_DIR = "$pwd\.dotnetcli"
8- - ps : ' & .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath'
9+ - ps : ' & .\build\installcli.ps1 -InstallDir "$env:DOTNET_INSTALL_DIR" -NoPath -Version 1.0.0-preview2-003121 '
910 - ps : $env:Path = "$env:DOTNET_INSTALL_DIR;$env:Path"
1011build_script :
1112- ps : ./Build.ps1
@@ -18,4 +19,11 @@ deploy:
1819 secure : nvZ/z+pMS91b3kG4DgfES5AcmwwGoBYQxr9kp4XiJHj25SAlgdIxFx++1N0lFH2x
1920 skip_symbols : true
2021 on :
21- branch : /^(dev|master)$/
22+ branch : /^(master)$/
23+ - provider : GitHub
24+ auth_token :
25+ secure : Bo3ypKpKFxinjR9ShkNekNvkob2iklHJU+UlYyfHtcFFIAa58SV2TkEd0xWxz633
26+ artifact : /Serilog.*\.nupkg/
27+ tag : v$(appveyor_build_version)
28+ on :
29+ branch : master
Original file line number Diff line number Diff line change 11{
2- "version" : " 2.0.0-beta- *" ,
2+ "version" : " 2.0.0-*" ,
33 "description" : " The console sink for Serilog." ,
44 "authors" : [
55 " Serilog Contributors"
1414 "iconUrl" : " http://serilog.net/images/serilog-sink-nuget.png"
1515 },
1616 "dependencies" : {
17- "Serilog" : " 2.0.0-rc-556 "
17+ "Serilog" : " 2.0.0"
1818 },
1919 "buildOptions" : {
2020 "keyFile" : " ../../assets/Serilog.snk"
2323 "net4.5" : {},
2424 "netstandard1.3" : {
2525 "dependencies" : {
26- "System.Console" : " 4.0.0-rc2-24027 "
26+ "System.Console" : " 4.0.0"
2727 }
2828 }
2929 }
You can’t perform that action at this time.
0 commit comments