blog
twitter
Termite Logging Framework for .NET termite VS Tool online logging
 
tweet tweet tweet tweet tweet

Format Strings

Format strings are used in the LogEntryFormatStringFormatter. This class is utilized by the ConfigLogger--the logger that is configured using the config files. This formatter class is also used by some other loggers in the system.

A format string is much like a format string in .NET. But whereas a .NET format string for a date looks like: "{0:MM-dd-yyyy}", a format string in the logging framework looks like: "{timestamp:MM-dd-yyyy}". The difference is the logging framework uses named parameters rather than an index.

The parameters used by the logging framework are:

application
machine
category
severity
timestamp
message