Share via


TokenFunction.Format Method

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

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)

Syntax

'Declaration
PublicOverridableSubFormat ( _
    messageBuilderAs StringBuilder, _
    logAs LogEntry _
)
publicvirtualvoidFormat(
    StringBuilder messageBuilder,
    LogEntry log
)
public:
virtualvoidFormat(
    StringBuilder^ messageBuilder, 
    LogEntry^ log
)
publicfunctionFormat(
    messageBuilder : StringBuilder, 
    log : LogEntry
)

Parameters

See Also

TokenFunction Class

Microsoft.Practices.EnterpriseLibrary.Logging.Formatters Namespace

Retired Content

This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.