You can wire this up to any of the Ukadc.Diagnostics listeners (and therefore filters).

However, there is one big caveat...

When calling Trace.WriteLine and Debug.WriteLine the TraceEventCache isn't populated. I'm not sure why, but it isn't - so that means that the following tokens will fail: {DateTime}, {Callstack}, {ProcessId}, {ThreadId} and {Timestamp}. At the moment I'm considering ways to mitigate this and I've just checked in some changes that prevent the failure such that these tokens just return blanks. However, I am considering just foregoing the TraceEventCache altogether as there's no reason we can't source this information ourselves. If you think this is a good idea, be sure to vote for this feature on the Issue Tracker.