Extension Methods: Extension Methods / Serilog¶
TL;DR — This page mirrors the
Extension Methods / Serilogsection from Extension Methods as a focused reference.
When to use¶
Use this page when you need the focused member list, signatures, and source notes for this section without scanning the full parent reference.
C# (CAC) usage¶
WithHostname¶
Source file, signature, and docstring
Member SerilogExtensions.WithHostname(this LoggerEnrichmentConfiguration enrichmentConfiguration)
Kind function
Declaring Type SerilogExtensions (extension type)
Source File QaaS.Framework.SDK/Extensions/LoggingExetentions.cs
Signature
public static LoggerConfiguration WithHostname(this LoggerEnrichmentConfiguration enrichmentConfiguration)
Docstring
Enriches log events with the machine hostname as a structured property and adds it as a tag (label) in Elasticsearch.
WithEnvironment¶
Source file, signature, and docstring
Member SerilogExtensions.WithEnvironment(this LoggerEnrichmentConfiguration enrichmentConfiguration)
Kind function
Declaring Type SerilogExtensions (extension type)
Source File QaaS.Framework.SDK/Extensions/LoggingExetentions.cs
Signature
public static LoggerConfiguration WithEnvironment(this LoggerEnrichmentConfiguration enrichmentConfiguration)
Docstring
Enriches log events with the CI/Local environment as a structured property and adds it as a tag (label) in Elasticsearch.
Edge cases¶
- This page is generated from the parent reference section; edit the source XML docs or generator when content needs to change.
- If a linked source member is renamed, regenerate the reference docs before changing prose by hand.