cms analysis

Topics: General
Jul 29, 2011 at 1:53 PM

hello all.

How to control exceptions in c1?

How to log exceptions and critical error logging?

How does table and view  and stored procedure access in c1?

thank you.

Jul 29, 2011 at 2:52 PM

>> How to control exceptions in c1?

>> How to log exceptions and critical error logging?

To log exception use methods from Composite.Core.Log class (see C1 API documentation), for example:

						try
						{
							...
						}
						catch (Exception ex)
						{
							Composite.Core.Log.LogError("My error title", ex);
						}
You can read log data using the log viewer available inside the C1 Console - "Tools | Server Log" or by using LogViewer. For more information read this article - http://docs.composite.net/C1/Console/Logging.aspx

>> How does table and view  and stored procedure access in c1?

You can execute SQL queries in C1 by using SQL functions