Suoranta.EnterpriseLib.Web - Developer API

LogService..::..LogError Method

Log exception or other (critical) error

Namespace:  Suoranta.EnterpriseLib.Logging
Assembly:  Suoranta.EnterpriseLib (in Suoranta.EnterpriseLib.dll)

Syntax


public Guid LogError(
	string message,
	bool critical,
	Exception exception,
	string sourceMethodName
)

Parameters

message
Type: String
Error description
critical
Type: Boolean
Set true if critical error
exception
Type: Exception
Related exception
sourceMethodName
Type: String
Provided by runtime

Return Value

Randomly chosen reference id if supported by ErrorOutput (otherwise Guid.Empty)