logging assembly discovery

#1562
Consider turning this into an extension method, or wrapping up string builder into it's own class.

```
builder.AppendKeyValue(value);
```

Inside this will basically have all this code.