Log debug messages in a SQL CLR C# Stored Procedure I have developed a SQL CLR stored procedure in C#, for SQL Server 2012.

I want to log messages to SQL Server registers. On a normal stored procedure I use xp_logevent

What can I use to log a message in a SQL CLR stored procedure?
Why not just execute xp_logevent via SqlContext.Pipe.ExecuteAndSend() in your catch block?