Skip to content

Commit 8472ad8

Browse files
authored
Merge pull request #67 from serilog/dev
3.0.0 Release
2 parents efbbe3e + 69e2dab commit 8472ad8

17 files changed

+339
-595
lines changed

.gitignore

+3-250
Original file line numberDiff line numberDiff line change
@@ -1,252 +1,5 @@
1-
## Ignore Visual Studio temporary files, build results, and
2-
## files generated by popular Visual Studio add-ons.
3-
4-
# User-specific files
5-
*.suo
6-
*.user
7-
*.userosscache
8-
*.sln.docstates
9-
10-
# User-specific files (MonoDevelop/Xamarin Studio)
11-
*.userprefs
12-
13-
# Build results
14-
[Dd]ebug/
15-
[Dd]ebugPublic/
16-
[Rr]elease/
17-
[Rr]eleases/
18-
x64/
19-
x86/
20-
bld/
21-
[Bb]in/
22-
[Oo]bj/
23-
[Ll]og/
24-
25-
# Visual Studio 2015 cache/options directory
261
.vs/
27-
# Uncomment if you have tasks that create the project's static files in wwwroot
28-
#wwwroot/
29-
30-
# MSTest test Results
31-
[Tt]est[Rr]esult*/
32-
[Bb]uild[Ll]og.*
33-
34-
# NUNIT
35-
*.VisualState.xml
36-
TestResult.xml
37-
38-
# Build Results of an ATL Project
39-
[Dd]ebugPS/
40-
[Rr]eleasePS/
41-
dlldata.c
42-
43-
# DNX
44-
project.lock.json
45-
artifacts/
46-
47-
*_i.c
48-
*_p.c
49-
*_i.h
50-
*.ilk
51-
*.meta
52-
*.obj
53-
*.pch
54-
*.pdb
55-
*.pgc
56-
*.pgd
57-
*.rsp
58-
*.sbr
59-
*.tlb
60-
*.tli
61-
*.tlh
62-
*.tmp
63-
*.tmp_proj
64-
*.log
65-
*.vspscc
66-
*.vssscc
67-
.builds
68-
*.pidb
69-
*.svclog
70-
*.scc
71-
72-
# Chutzpah Test files
73-
_Chutzpah*
74-
75-
# Visual C++ cache files
76-
ipch/
77-
*.aps
78-
*.ncb
79-
*.opendb
80-
*.opensdf
81-
*.sdf
82-
*.cachefile
83-
*.VC.db
84-
*.VC.VC.opendb
85-
86-
# Visual Studio profiler
87-
*.psess
88-
*.vsp
89-
*.vspx
90-
*.sap
91-
92-
# TFS 2012 Local Workspace
93-
$tf/
94-
95-
# Guidance Automation Toolkit
96-
*.gpState
97-
98-
# ReSharper is a .NET coding add-in
99-
_ReSharper*/
100-
*.[Rr]e[Ss]harper
101-
*.DotSettings.user
102-
103-
# JustCode is a .NET coding add-in
104-
.JustCode
105-
106-
# TeamCity is a build add-in
107-
_TeamCity*
108-
109-
# DotCover is a Code Coverage Tool
110-
*.dotCover
111-
112-
# NCrunch
113-
_NCrunch_*
114-
.*crunch*.local.xml
115-
nCrunchTemp_*
116-
117-
# MightyMoose
118-
*.mm.*
119-
AutoTest.Net/
120-
121-
# Web workbench (sass)
122-
.sass-cache/
123-
124-
# Installshield output folder
125-
[Ee]xpress/
126-
127-
# DocProject is a documentation generator add-in
128-
DocProject/buildhelp/
129-
DocProject/Help/*.HxT
130-
DocProject/Help/*.HxC
131-
DocProject/Help/*.hhc
132-
DocProject/Help/*.hhk
133-
DocProject/Help/*.hhp
134-
DocProject/Help/Html2
135-
DocProject/Help/html
136-
137-
# Click-Once directory
138-
publish/
139-
140-
# Publish Web Output
141-
*.[Pp]ublish.xml
142-
*.azurePubxml
143-
# TODO: Comment the next line if you want to checkin your web deploy settings
144-
# but database connection strings (with potential passwords) will be unencrypted
145-
*.pubxml
146-
*.publishproj
147-
148-
# Microsoft Azure Web App publish settings. Comment the next line if you want to
149-
# checkin your Azure Web App publish settings, but sensitive information contained
150-
# in these scripts will be unencrypted
151-
PublishScripts/
152-
153-
# NuGet Packages
154-
*.nupkg
155-
# The packages folder can be ignored because of Package Restore
156-
**/packages/*
157-
# except build/, which is used as an MSBuild target.
158-
!**/packages/build/
159-
# Uncomment if necessary however generally it will be regenerated when needed
160-
#!**/packages/repositories.config
161-
# NuGet v3's project.json files produces more ignoreable files
162-
*.nuget.props
163-
*.nuget.targets
164-
165-
# Microsoft Azure Build Output
166-
csx/
167-
*.build.csdef
168-
169-
# Microsoft Azure Emulator
170-
ecf/
171-
rcf/
172-
173-
# Windows Store app package directories and files
174-
AppPackages/
175-
BundleArtifacts/
176-
Package.StoreAssociation.xml
177-
_pkginfo.txt
178-
179-
# Visual Studio cache files
180-
# files ending in .cache can be ignored
181-
*.[Cc]ache
182-
# but keep track of directories ending in .cache
183-
!*.[Cc]ache/
184-
185-
# Others
186-
ClientBin/
187-
~$*
188-
*~
189-
*.dbmdl
190-
*.dbproj.schemaview
191-
*.pfx
192-
*.publishsettings
193-
node_modules/
194-
orleans.codegen.cs
195-
196-
# Since there are multiple workflows, uncomment next line to ignore bower_components
197-
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
198-
#bower_components/
199-
200-
# RIA/Silverlight projects
201-
Generated_Code/
202-
203-
# Backup & report files from converting an old project file
204-
# to a newer Visual Studio version. Backup files are not needed,
205-
# because we have git ;-)
206-
_UpgradeReport_Files/
207-
Backup*/
208-
UpgradeLog*.XML
209-
UpgradeLog*.htm
210-
211-
# SQL Server files
212-
*.mdf
213-
*.ldf
214-
215-
# Business Intelligence projects
216-
*.rdl.data
217-
*.bim.layout
218-
*.bim_*.settings
219-
220-
# Microsoft Fakes
221-
FakesAssemblies/
222-
223-
# GhostDoc plugin setting file
224-
*.GhostDoc.xml
225-
226-
# Node.js Tools for Visual Studio
227-
.ntvs_analysis.dat
228-
229-
# Visual Studio 6 build log
230-
*.plg
231-
232-
# Visual Studio 6 workspace options file
233-
*.opt
234-
235-
# Visual Studio LightSwitch build output
236-
**/*.HTMLClient/GeneratedArtifacts
237-
**/*.DesktopClient/GeneratedArtifacts
238-
**/*.DesktopClient/ModelManifest.xml
239-
**/*.Server/GeneratedArtifacts
240-
**/*.Server/ModelManifest.xml
241-
_Pvt_Extensions
242-
243-
# Paket dependency manager
244-
.paket/paket.exe
245-
paket-files/
246-
247-
# FAKE - F# Make
248-
.fake/
249-
250-
# JetBrains Rider
2512
.idea/
252-
*.sln.iml
3+
obj/
4+
bin/
5+
*.user

Build.ps1

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Write-Output "build: Build started"
22

33
Push-Location $PSScriptRoot
44

5-
if(Test-Path .\artifacts) {
5+
if (Test-Path .\artifacts) {
66
Write-Output "build: Cleaning .\artifacts"
77
Remove-Item .\artifacts -Force -Recurse
88
}
@@ -18,18 +18,18 @@ Write-Output "build: Build version suffix is $buildSuffix"
1818

1919
& dotnet build --configuration Release --version-suffix=$buildSuffix /p:ContinuousIntegrationBuild=true
2020

21-
if($LASTEXITCODE -ne 0) { throw 'build failed' }
21+
if ($LASTEXITCODE -ne 0) { throw 'build failed' }
2222

23-
if($suffix) {
23+
if ($suffix) {
2424
& dotnet pack src\Serilog.Formatting.Compact --configuration Release --no-build --no-restore -o artifacts --version-suffix=$suffix
2525
} else {
2626
& dotnet pack src\Serilog.Formatting.Compact --configuration Release --no-build --no-restore -o artifacts
2727
}
2828

29-
if($LASTEXITCODE -ne 0) { throw 'pack failed' }
29+
if ($LASTEXITCODE -ne 0) { throw 'pack failed' }
3030

3131
Write-Output "build: Testing"
3232

3333
& dotnet test test\Serilog.Formatting.Compact.Tests --configuration Release --no-build --no-restore
3434

35-
if($LASTEXITCODE -ne 0) { throw 'unit tests failed' }
35+
if ($LASTEXITCODE -ne 0) { throw 'unit tests failed' }

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ A simple `Hello, {User}` event.
1515
Install from [NuGet](https://nuget.org/packages/Serilog.Formatting.Compact):
1616

1717
```powershell
18-
Install-Package Serilog.Formatting.Compact
18+
dotnet add package Serilog.Formatting.Compact
1919
```
2020

2121
The formatter is used in conjunction with sinks that accept `ITextFormatter`. For example, the [file](https://github.com/serilog/serilog-sinks-file) sink:
@@ -26,6 +26,7 @@ Log.Logger = new LoggerConfiguration()
2626
.CreateLogger();
2727
```
2828
#### XML `<appSettings>` configuration
29+
2930
To specify the formatter in XML `<appSettings>` provide its assembly-qualified type name:
3031

3132
```xml
@@ -87,6 +88,8 @@ The format defines a handful of reified properties that have special meaning:
8788
| `@x` | Exception | A language-dependent error representation potentially including backtrace | |
8889
| `@i` | Event id | An implementation specific event id (string or number) | |
8990
| `@r` | Renderings | If `@mt` includes tokens with programming-language-specific formatting, an array of pre-rendered values for each such token | May be omitted; if present, the count of renderings must match the count of formatted tokens exactly |
91+
| `@tr` | Trace id | The id of the trace that was active when the event was created, if any | |
92+
| `@sp` | Span id | The id of the span that was active when the event was created, if any | |
9093

9194
The `@` sigil may be escaped at the start of a user property name by doubling, e.g. `@@name` denotes a property called `@name`.
9295

@@ -152,3 +155,7 @@ Several tools are available for working with the CLEF format.
152155
* **[Compact Log Format Viewer](https://github.com/warrenbuckley/Compact-Log-Format-Viewer)** - a cross-platform viewer for CLEF files
153156
* **[`seqcli`](https://github.com/datalust/seqcli)** - pretty-`print` CLEF files at the command-line, or `ingest` CLEF files into [Seq](https://datalust.co/seq) for search, and analysis
154157
* **[_Serilog.Formatting.Compact.Reader_](https://github.com/serilog/serilog-formatting-compact-reader)** - convert CLEF documents back into Serilog `LogEvent`s
158+
159+
### Customizing output
160+
161+
_Serilog.Formatting.Compact_ is not intended to provide customizable formatters. See [this blog post](https://nblumhardt.com/2021/06/customize-serilog-json-output/) for comprehensive Serilog JSON output customization examples.

appveyor.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,8 @@ version: '{build}'
22
skip_tags: true
33
image: Visual Studio 2022
44
configuration: Release
5-
install:
6-
- ps: ./Setup.ps1
75
build_script:
8-
- ps: ./Build.ps1
6+
- pwsh: ./Build.ps1
97
test: false
108
artifacts:
119
- path: artifacts/Serilog.*.nupkg

global.json

-5
This file was deleted.

serilog-formatting-compact.sln

+6-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 15
4-
VisualStudioVersion = 15.0.26114.2
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.8.34330.188
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{037440DE-440B-4129-9F7A-09B42D00397E}"
77
EndProject
@@ -10,15 +10,17 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "assets", "assets", "{E9D1B5
1010
appveyor.yml = appveyor.yml
1111
Build.ps1 = Build.ps1
1212
CHANGES.md = CHANGES.md
13+
LICENSE = LICENSE
1314
README.md = README.md
1415
assets\Serilog.snk = assets\Serilog.snk
16+
Setup.ps1 = Setup.ps1
1517
EndProjectSection
1618
EndProject
1719
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "test", "test", "{67B1C971-75EE-4ABE-B184-66AAC8D9D572}"
1820
EndProject
19-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Formatting.Compact", "src\Serilog.Formatting.Compact\Serilog.Formatting.Compact.csproj", "{E0BB862A-8B2C-46B5-9C90-B2F94C32EAB3}"
21+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Formatting.Compact", "src\Serilog.Formatting.Compact\Serilog.Formatting.Compact.csproj", "{E0BB862A-8B2C-46B5-9C90-B2F94C32EAB3}"
2022
EndProject
21-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Serilog.Formatting.Compact.Tests", "test\Serilog.Formatting.Compact.Tests\Serilog.Formatting.Compact.Tests.csproj", "{BAEECC42-EC0C-4955-8AA1-BD3F4F0F4AAD}"
23+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Serilog.Formatting.Compact.Tests", "test\Serilog.Formatting.Compact.Tests\Serilog.Formatting.Compact.Tests.csproj", "{BAEECC42-EC0C-4955-8AA1-BD3F4F0F4AAD}"
2224
EndProject
2325
Global
2426
GlobalSection(SolutionConfigurationPlatforms) = preSolution

serilog-formatting-compact.sln.DotSettings

-2
This file was deleted.

0 commit comments

Comments
 (0)