18 using System.Collections.Generic;
20 namespace Deveel.Data.Diagnostics {
23 source.
Context.RegisterEvent(@event);
27 OnError(source, error, -1);
31 OnError(source, error, errorCode,
ErrorLevel.Error);
35 OnError(source, error, -1, level);
39 var errorEvent =
new ErrorEvent(error, errorCode, level);
40 source.OnEvent(errorEvent);
static void OnError(this IEventSource source, Exception error, int errorCode, ErrorLevel level)
static void OnDebug(this IEventSource source, string message)
This is an event occurred during the lifetime of a database.
static void OnError(this IEventSource source, Exception error, int errorCode)
ErrorLevel
In case of error messages, this enumerates the level of severity of the error.
static void OnPerformance(this IEventSource source, string key, object value)
static void OnError(this IEventSource source, Exception error, ErrorLevel level)
static void OnVerbose(this IEventSource source, string message)
static void OnInformation(this IEventSource source, string message)
static void OnError(this IEventSource source, Exception error)
static void OnInformation(this IEventSource source, string message, InformationLevel level)
static void OnEvent(this IEventSource source, IEvent @event)
Represents the origin of system events, providing a mechanism to fill the metadata before dispatching...