Skip to content

Commit 78e7f00

Browse files
committed
Added Syslog and Gelf Layout
1 parent 0cddf13 commit 78e7f00

File tree

3 files changed

+47
-13
lines changed

3 files changed

+47
-13
lines changed

config/layout-renderers.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,30 @@
789789
],
790790
"category": "Web, ASP.NET and ASP.NET Core"
791791
},
792+
{
793+
"name": "aspnet-request-endpoint-group",
794+
"page": "AspNet-Request-EndPoint-Group-Layout-Renderer",
795+
"package": [
796+
"NLog.Web.AspNetCore"
797+
],
798+
"description": "ASP.NET Request EndPoint Group name.",
799+
"platforms": [
800+
"netstandard2.0"
801+
],
802+
"category": "Web, ASP.NET and ASP.NET Core"
803+
},
804+
{
805+
"name": "aspnet-request-endpoint-name",
806+
"page": "AspNet-Request-EndPoint-Name-Layout-Renderer",
807+
"package": [
808+
"NLog.Web.AspNetCore"
809+
],
810+
"description": "ASP.NET Request EndPoint Name name.",
811+
"platforms": [
812+
"netstandard2.0"
813+
],
814+
"category": "Web, ASP.NET and ASP.NET Core"
815+
},
792816
{
793817
"name": "aspnet-request-client-certificate",
794818
"page": "AspNet-Request-Client-Certificate-Layout-Renderer",

config/layouts.json

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,32 @@
77
{
88
"name": "JSON",
99
"page": "JsonLayout",
10-
"description": "Render events to JSON-Dictionary-format"
10+
"description": "Renders events to JSON-Dictionary-format"
1111
},
1212
{
1313
"name": "JsonArray",
1414
"page": "JsonArrayLayout",
15-
"description": "Render events to JSON-Array-format"
15+
"description": "Renders events to JSON-Array-format"
1616
},
1717
{
1818
"name": "XML",
1919
"page": "XmlLayout",
20-
"description": "Render events to XML-format"
20+
"description": "Renders events to XML-format"
2121
},
2222
{
2323
"name": "Log4JXml",
2424
"page": "Log4JXmlEventLayout",
25-
"description": "Render events to Log4j-compatible XML-format"
25+
"description": "Renders events to Log4j-compatible XML-format"
26+
},
27+
{
28+
"name": "Syslog",
29+
"page": "SyslogLayout",
30+
"description": "Renders events to Syslog-format"
31+
},
32+
{
33+
"name": "Gelf",
34+
"page": "GelfLayout",
35+
"description": "Renders events to Graylog GELF JSON-format"
2636
},
2737
{
2838
"name": "Compound",
@@ -32,12 +42,12 @@
3242
{
3343
"name": "Simple (plain text)",
3444
"page": "SimpleLayout",
35-
"description": "Write events as plain text. The default layout when no Layout type is specified."
45+
"description": "Renders events as plain text. The default layout when no Layout type is specified."
3646
},
3747
{
3848
"name": "MicrosoftConsoleLayout",
3949
"page": "MicrosoftConsoleLayout",
40-
"description": "Write events to text format similar to Microsoft AddConsole Formatter for Microsoft.Hosting.Lifetime",
50+
"description": "Renders events to text format similar to Microsoft AddConsole Formatter for Microsoft.Hosting.Lifetime",
4151
"package": [
4252
"NLog.Extensions.Logging",
4353
"NLog.Extensions.Hosting",
@@ -47,7 +57,7 @@
4757
{
4858
"name": "MicrosoftConsoleJson",
4959
"page": "MicrosoftConsoleJsonLayout",
50-
"description": "Write events to JSON-format similar to Microsoft AddJsonConsole Formatter.",
60+
"description": "Renders events to JSON-format similar to Microsoft AddJsonConsole Formatter.",
5161
"package": [
5262
"NLog.Extensions.Logging",
5363
"NLog.Extensions.Hosting",
@@ -57,7 +67,7 @@
5767
{
5868
"name": "W3CExtendedLogLayout",
5969
"page": "W3CExtendedLogLayout",
60-
"description": "Write events to W3C Extended Log Format (ELF) like IIS.",
70+
"description": "Renders events to W3C Extended Log Format (ELF) like IIS.",
6171
"package": [
6272
"NLog.Web",
6373
"NLog.Web.AspNetCore"
@@ -66,23 +76,23 @@
6676
{
6777
"name": "GELF JSON",
6878
"page": "https://github.com/farzadpanahi/NLog.GelfLayout",
69-
"description": "Write events to GELF JSON-format for GrayLog-server.",
79+
"description": "Renders events to GELF JSON-format for GrayLog-server.",
7080
"package": [
7181
"NLog.GelfLayout"
7282
]
7383
},
7484
{
7585
"name": "CLEF JSON",
7686
"page": "https://github.com/paulem/nlog-layouts-clef",
77-
"description": "Write events in JSON using the Compact Log Event Format (CLEF) for Seq-server.",
87+
"description": "Renders events in JSON using the Compact Log Event Format (CLEF) for Seq-server.",
7888
"package": [
7989
"NLog.Layouts.ClefJsonLayout"
8090
]
8191
},
8292
{
8393
"name": "Elastic JSON",
8494
"page": "https://github.com/elastic/ecs-dotnet/tree/main/src/Elastic.CommonSchema.NLog",
85-
"description": "Write events in JSON using Elastic Common Schema (ECS) for ElasticSearch-server.",
95+
"description": "Renders events in JSON using Elastic Common Schema (ECS) for ElasticSearch-server.",
8696
"package": [
8797
"Elastic.CommonSchema.NLog"
8898
]

download/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
<h1 class="page-header" id="download">Getting started</h1>
77

88
<ul>
9-
<li><a href="https://github.com/NLog/NLog/wiki/Tutorial">Getting started for .NET framework</a></li>
9+
<li><a href="https://github.com/NLog/NLog/wiki/Tutorial">Getting started with NLog Logging</a></li>
1010
<li><a href="https://github.com/NLog/NLog/wiki/Getting-started-with-ASP.NET-Core-6">Getting started for
1111
ASP.NET Core</a></li>
1212
<li><a
1313
href="https://github.com/NLog/NLog/wiki/Getting-started-with-.NET-Core-2---Console-application">
14-
Getting started for .NET Core Console application</a></li>
14+
Getting started for Console Application with Microsoft Extension Logging</a></li>
1515
<li><a href="https://github.com/NLog/NLog/wiki/How-to-use-structured-logging">How to use structured logging</a>
1616
</li>
1717
</ul>

0 commit comments

Comments
 (0)