Figure 2. Use a Custom Publisher to Log to the Server.
Your custom publisher is now logging exceptions to SQL Server. You can use any database, and you can publish to e-mail, MSMQ, or any other destination. Logging to SQL Server makes sense because you can collect the data in a centralized location rather than on each client's desktop.