Joutsen Logging v0.5.0+26-g72240ac
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Joutsen.Logging.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.
 

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 > Joutsen.Logging.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 Joutsen.Logging.AssemblyScope, Joutsen.Logging.CombinedScope, Joutsen.Logging.MethodScope, Joutsen.Logging.ParentScope, Joutsen.Logging.ThreadScope, and Joutsen.Logging.TypeScope.