AdvantageCMS.Core.Common.BaseClasses Namespace
Advantage CSP

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

Logs the exception.

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
Prefex message added to the exception message
exc
Type: Exception
The exception
currentSQL
Type: AdvantageCMS.Data..::..SQL
Current sql connection
forceLog
Type: Boolean
Force saving the log even if configuration turned off