Vostok.Logging
HomeQuickstartModulesImplementations
1.0.0
1.0.0
  • Home
  • Quickstart
  • Guarantees
  • Configuration
  • Concepts and basics
    • Log interface
    • Log events
    • Syntax
      • Logging extensions
      • Message templates
      • Providing property values
    • Formatting
      • Output templates
      • Special properties
      • Format specifiers
    • Source context
    • Operation context
  • Modules
    • Abstractions
    • Configuration
    • Formatting
    • Console
    • File
    • Hercules
    • Context
    • Serilog
    • Log4net
    • NUnit
    • Microsoft
  • Implementations
    • Silent log
    • Console log
    • File log
    • Hercules log
  • Integrations
    • Serilog integration
    • Log4net integration
    • Microsoft logging integration
  • How-to guides
    • Using operation context
    • Using static log provider
    • Filtering events
    • Enriching events
    • Transforming events
    • Combining multiple logs
    • Custom output templates
    • External configuration rules
Powered by GitBook
On this page
  • Default template
  • Custom templates:
  1. Concepts and basics
  2. Formatting

Output templates

PreviousFormattingNextSpecial properties

Last updated 3 years ago

are patterns used to render into text representation, shaping the output of text-based logs.

Their general syntax is identical to that of , but output templates also support a set of that do not have to be present in log events.

Ordinary properties from log events can also be included in output templates.

Output templates can also contain uninterpreted text.

Default template

Default output template OutputTemplate.Default looks like this:

{Timestamp} {Level} {traceContext:w}{operationContext:w}{sourceContext:w}{Message}{NewLine}{Exception}

See the list of to understand the bulk of this template's content.

See the sections about and to learn more about corresponding well-known properties mentioned in this template.

See section to find out how the :w modifier works.

Custom templates:

See the guide dedicated to custom templates usage:

Output templates
log events
message templates
special predefined properties
special properties
source context
operation context
format specifiers
Custom output templates