* unescape filter strings since they are coming in double escaped, e.g., \\r\\n instead of \r\n
* add note to documentation about correct usage of filter string
4 - Informational
5 - Verbose
KeyValueArgs - A semicolon separated list of key=value
- KeyValueArgs format: '[key1=value1][;key2=value2]'
+ KeyValueArgs format: '[key1=value1][;key2=value2]'
+ note: values that contain ';' or '=' characters should be surrounded by double quotes ("), e.g., 'key="value;with=symbols";key2=value2'
--buffersize <Size>
Sets the size of the in-memory circular buffer in megabytes. Default 256 MB.
using System;
using System.Diagnostics.Tracing;
+using System.Text.RegularExpressions;
namespace Microsoft.Diagnostics.Tools.RuntimeClient
{
Name = name;
Keywords = keywords;
EventLevel = eventLevel;
- FilterData = string.IsNullOrWhiteSpace(filterData) ? null : filterData;
+ FilterData = string.IsNullOrWhiteSpace(filterData) ? null : Regex.Unescape(filterData);
}
public ulong Keywords { get; }