Formats a LogEntry to be printed as text.
Default constructor
public Void TextLogFormatter()
Initializes a new instance of TextLogFormatter.
public Void TextLogFormatter(template)
Name | Type | Summary |
---|---|---|
template | String |
Creates a new builder to hold formatting results based in the template.
protected StringBuilder CreateTemplateBuilder(template)
Name | Type | Summary |
---|---|---|
template | String |
Formats the entry to be written.
public String Format(entry)
Name | Type | Summary |
---|---|---|
entry | LogEntry |
Formats the LogEntry object by replacing tokens with values.
protected String Format(builder, entry)
Name | Type | Summary |
---|---|---|
builder | StringBuilder | |
entry | LogEntry |
Provides a textual representation of a categories list.
public String FormatCategoriesCollection(categories)
Name | Type | Summary |
---|---|---|
categories | ICollection<String> |
In this document