This article explains about how to write exceptions and other messages to Event Viewer in the C# application.