Add Row into SQL Server Log How can I programmatically insert a row into either the SQL Error or SQL Server logs on a SQL Server?

I wrote a Dot Net application to do a data import job and would like to write log entries into the SQL Server's log on a failure.

In SSMS, the log can be found Management-SQL Server Log. 

I can pull the contents of the error and SQL Server log by the stored procedure xp_readerrorlog.
You can write to the SQL Server error logs via the t-sql RAISERROR command.

See this Technet article.