You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-1Lines changed: 6 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ A simple `Hello, {User}` event.
15
15
Install from [NuGet](https://nuget.org/packages/Serilog.Formatting.Compact):
16
16
17
17
```powershell
18
-
Install-Package Serilog.Formatting.Compact
18
+
dotnet add package Serilog.Formatting.Compact
19
19
```
20
20
21
21
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()
26
26
.CreateLogger();
27
27
```
28
28
#### XML `<appSettings>` configuration
29
+
29
30
To specify the formatter in XML `<appSettings>` provide its assembly-qualified type name:
30
31
31
32
```xml
@@ -154,3 +155,7 @@ Several tools are available for working with the CLEF format.
154
155
***[Compact Log Format Viewer](https://github.com/warrenbuckley/Compact-Log-Format-Viewer)** - a cross-platform viewer for CLEF files
155
156
***[`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
156
157
***[_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.
0 commit comments