Joutsen Logging v0.5.0+22-gec3d058
Public Member Functions | List of all members
Scope Interface Reference

Provides additional information to a log record, usually about the context of where the record was created. More...

Public Member Functions

Map< string, string > ToNamedStrings (string format, IFormatProvider formatProvider)
 Creates a map of key value pairs which can be used to write the scope in a structured way. More...
 

Detailed Description

Provides additional information to a log record, usually about the context of where the record was created.

Since
Unreleased

Member Function Documentation

◆ ToNamedStrings()

Map< string, string > Scope.ToNamedStrings ( string  format,
IFormatProvider  formatProvider 
)

Creates a map of key value pairs which can be used to write the scope in a structured way.

Parameters
formatthe string that defines the output format for the scope
formatProviderprovides localization information to format the scopes information
Returns
a map of names and values that make up the information of the scope

Implemented in AssemblyScope, CombinedScope, MethodScope, ParentScope, ThreadScope, and TypeScope.