Show / Hide Table of Contents

Class DefaultFormatter

Inheritance
System.Object
DefaultFormatter
Implements
IScopeFormatter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: DevInstance.LogScope.Formatters
Assembly: DevInstance.LogScope.dll
Syntax
public class DefaultFormatter : IScopeFormatter

Constructors

| Improve this Doc View Source

DefaultFormatter(DefaultFormattersOptions)

Declaration
public DefaultFormatter(DefaultFormattersOptions options)
Parameters
Type Name Description
DefaultFormattersOptions options

Properties

| Improve this Doc View Source

Options

Declaration
public DefaultFormattersOptions Options { get; }
Property Value
Type Description
DefaultFormattersOptions

Methods

| Improve this Doc View Source

FormatLine(String, String)

Declaration
public string FormatLine(string scopeName, string message)
Parameters
Type Name Description
System.String scopeName
System.String message
Returns
Type Description
System.String
| Improve this Doc View Source

FormatNestedScopes(String, String)

Declaration
public string FormatNestedScopes(string scopeName, string childScope)
Parameters
Type Name Description
System.String scopeName
System.String childScope
Returns
Type Description
System.String
| Improve this Doc View Source

ScopeEnd(DateTime, String, TimeSpan)

Declaration
public string ScopeEnd(DateTime endTime, string scopeName, TimeSpan execTime)
Parameters
Type Name Description
System.DateTime endTime
System.String scopeName
System.TimeSpan execTime
Returns
Type Description
System.String
| Improve this Doc View Source

ScopeStart(DateTime, String)

Declaration
public string ScopeStart(DateTime timeStart, string scopeName)
Parameters
Type Name Description
System.DateTime timeStart
System.String scopeName
Returns
Type Description
System.String

Implements

IScopeFormatter
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX