TextLogFormatter

Formats a LogEntry to be printed as text.

Namespace:
Inetdev.Diagnostics.Formatters
Type:
Class
Public:
Yes
Protected:
No
Sealed:
No
Abstract:
No
Inherits from:
Inetdev.Diagnostics.Formatters.LogFormatter

Constructors

TextLogFormatter

Default constructor

Signature:
public Void TextLogFormatter()

TextLogFormatter

Initializes a new instance of TextLogFormatter.

Signature:
public Void TextLogFormatter(template)
Parameters
Name Type Summary
template String

Methods

CreateTemplateBuilder

Creates a new builder to hold formatting results based in the template.

Signature:
protected StringBuilder CreateTemplateBuilder(template)
Parameters
Name Type Summary
template String

Format

Formats the entry to be written.

Signature:
public String Format(entry)
Parameters
Name Type Summary
entry LogEntry

Format

Formats the LogEntry object by replacing tokens with values.

Signature:
protected String Format(builder, entry)
Parameters
Name Type Summary
builder StringBuilder
entry LogEntry

FormatCategoriesCollection

Provides a textual representation of a categories list.

Signature:
public String FormatCategoriesCollection(categories)
Parameters
Name Type Summary
categories ICollection<String>