Skip to content
Dagen Brock edited this page Aug 16, 2017 · 6 revisions

TFSNotificationRelay comes with inbuilt tracing for debugging purposes.

Enable logging

Run the following SQL on the tfs_configuration database.

DECLARE @traceId UNIQUEIDENTIFIER = NEWID() 
EXEC prc_CreateTrace @traceId = @traceId, @area = 'TfsNotificationRelay'

The tracing will then show up under Application and Services\Microsoft-Team Foundation Server\Debug in Event Viewer.

If logs are not appearing, you should check the main Application log for errors. This is where errors will appear if config files are invalid or the plugin fails to load.

Disable Logging

You need to delete the trace record if you want to disable logging. You need the GUID of the trace which you can get with the following sql.

Select * from tbl_trace

Get the GUID from the TfsNotificationRelay trace and use it in the following sql.

EXEC [dbo].[prc_DeleteTrace] @traceId = 'GUID-GOES-HERE'
Clone this wiki locally