Formatters
Just as you can use the child elements of the <listeners/> element to control how much information is logged to a Service's Event Log or Log File, you can control how the information that appears in the Event Log or Log File is formatted, within the <formatters/> element of the configuration file. Formatters use Tokens, such as {message} or {property(ErrorMessages)} to represent blocks of text containing information.
Note: Bluespring only recommends changing the date formatting, where it is specified as
{timestamp(local:yyyy-MM-dd HH:mm:ss)}. For example, in the Task Service if you wish to format the dates for each entry within the Bluespring.TaskService.log file as English (United Kingdom), i.e. year-day-month (instead of year-month-day), update the formatter to:
<
add template="{timestamp(local:yyyy-dd-MM HH:mm:ss)} {message} {property(ErrorMessages)}" type="Microsoft.Practices.EnterpriseLibrary.Logging.Formatters.TextFormatter, Microsoft.Practices.EnterpriseLibrary.Logging, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" name="Bluespring.TaskService.Formatter"/>