TokenFunction.Format Method
Searches for token functions in the message and replace all with formatted values.
Namespace: Microsoft.Practices.EnterpriseLibrary.Logging.Formatters
Assembly: Microsoft.Practices.EnterpriseLibrary.Logging (in Microsoft.Practices.EnterpriseLibrary.Logging.dll) Version: 6.0.0.0 (6.0.1304.0)
Syntax
public virtual void Format(
StringBuilder messageBuilder,
LogEntry log
)
'Declaration
Public Overridable Sub Format (
messageBuilder As StringBuilder,
log As LogEntry
)
public:
virtual void Format(
StringBuilder^ messageBuilder,
LogEntry^ log
)
Parameters
- messageBuilder
Type: System.Text.StringBuilder
Message template containing tokens.
- log
Type: Microsoft.Practices.EnterpriseLibrary.Logging.LogEntry
Log entry containing properties to format.
See Also
Microsoft.Practices.EnterpriseLibrary.Logging.Formatters Namespace