AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

ExceptionUtility..::..LogException Method (Exception, SQL, Boolean)

Logs the exception to the error log.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static void LogException(
	Exception exc,
	SQL currentSQL,
	bool forceLog
)

Parameters

exc
Type: Exception
The exception to log.
currentSQL
Type: AdvantageCMS.Data..::..SQL
The current SQL connection used for logging.
forceLog
Type: Boolean
If true, forces saving the log even if error logging is disabled in configuration.