AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

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

Logs the exception to the error log with an optional prefix message.

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

Syntax


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

Parameters

prefixMessage
Type: String
Prefix message prepended to the exception message.
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.