Saves the event to database.

Namespace:  CuttingEdge.Logging
Assembly:  CuttingEdge.Logging (in CuttingEdge.Logging.dll)

Syntax

Visual Basic (Declaration)
Protected Overridable Function SaveEventToDatabase ( _
	transaction As SqlTransaction, _
	severity As LoggingEventType, _
	message As String, _
	source As String _
) As Integer
C#
protected virtual int SaveEventToDatabase(
	SqlTransaction transaction,
	LoggingEventType severity,
	string message,
	string source
)
Visual C++
protected:
virtual int SaveEventToDatabase(
	SqlTransaction^ transaction, 
	LoggingEventType severity, 
	String^ message, 
	String^ source
)
JavaScript
function saveEventToDatabase(transaction, severity, message, source);

Parameters

transaction
Type: System.Data.SqlClient..::.SqlTransaction
The transaction.
severity
Type: CuttingEdge.Logging..::.LoggingEventType
The severity of the event.
message
Type: System..::.String
The message.
source
Type: System..::.String
The source.

Return Value

The database's primary key of the saved event.

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown when transaction is a null (Nothing in VB) reference.

See Also