Version number from formatter template tokens

Topics: Logging Application Block
Jun 23, 2010 at 2:41 PM

Is there a way to get the version number of the exe or dll using a formatter in the logging Application Block?  What about the windows user name too? That would be so useful to me when reading error logs.

TIA

Jun 24, 2010 at 7:18 AM

Hi TIA,

You can include them in the logs by adding them to the ExtendedProperties collection property of a LogEntry object and its content will be automatically included in the log entries if you included the  {dictionary({key} - {value} token in your formatter's template.

Gino Terrado
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com