Class DefaultFormatter
Inheritance
System.Object
DefaultFormatter
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()
Assembly: DevInstance.LogScope.dll
public class DefaultFormatter : IScopeFormatter
Constructors
|
Improve this Doc
View Source
Declaration
public DefaultFormatter(DefaultFormattersOptions options)
Parameters
Properties
|
Improve this Doc
View Source
Declaration
public DefaultFormattersOptions Options { get; }
Property Value
Methods
|
Improve this Doc
View Source
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
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
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
Declaration
public string ScopeStart(DateTime timeStart, string scopeName)
Parameters
Type |
Name |
Description |
System.DateTime |
timeStart |
|
System.String |
scopeName |
|
Returns
Type |
Description |
System.String |
|
Implements