DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Public Member Functions | List of all members
Deveel.Data.Diagnostics.EventSourceExtensions Class Reference

Static Public Member Functions

static void OnEvent (this IEventSource source, IEvent @event)
 
static void OnError (this IEventSource source, Exception error)
 
static void OnError (this IEventSource source, Exception error, int errorCode)
 
static void OnError (this IEventSource source, Exception error, ErrorLevel level)
 
static void OnError (this IEventSource source, Exception error, int errorCode, ErrorLevel level)
 
static void OnInformation (this IEventSource source, string message)
 
static void OnInformation (this IEventSource source, string message, InformationLevel level)
 
static void OnVerbose (this IEventSource source, string message)
 
static void OnDebug (this IEventSource source, string message)
 
static void OnPerformance (this IEventSource source, string key, object value)
 

Detailed Description

Definition at line 21 of file EventSourceExtensions.cs.

Member Function Documentation

static void Deveel.Data.Diagnostics.EventSourceExtensions.OnDebug ( this IEventSource  source,
string  message 
)
inlinestatic

Definition at line 55 of file EventSourceExtensions.cs.

55  {
56  source.OnInformation(message, InformationLevel.Debug);
57  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnError ( this IEventSource  source,
Exception  error 
)
inlinestatic

Definition at line 26 of file EventSourceExtensions.cs.

26  {
27  OnError(source, error, -1);
28  }
static void OnError(this IEventSource source, Exception error)
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnError ( this IEventSource  source,
Exception  error,
int  errorCode 
)
inlinestatic

Definition at line 30 of file EventSourceExtensions.cs.

30  {
31  OnError(source, error, errorCode, ErrorLevel.Error);
32  }
ErrorLevel
In case of error messages, this enumerates the level of severity of the error.
Definition: ErrorLevel.cs:24
static void OnError(this IEventSource source, Exception error)
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnError ( this IEventSource  source,
Exception  error,
ErrorLevel  level 
)
inlinestatic

Definition at line 34 of file EventSourceExtensions.cs.

34  {
35  OnError(source, error, -1, level);
36  }
static void OnError(this IEventSource source, Exception error)
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnError ( this IEventSource  source,
Exception  error,
int  errorCode,
ErrorLevel  level 
)
inlinestatic

Definition at line 38 of file EventSourceExtensions.cs.

38  {
39  var errorEvent = new ErrorEvent(error, errorCode, level);
40  source.OnEvent(errorEvent);
41  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnEvent ( this IEventSource  source,
IEvent event 
)
inlinestatic

Definition at line 22 of file EventSourceExtensions.cs.

22  {
23  source.Context.RegisterEvent(@event);
24  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnInformation ( this IEventSource  source,
string  message 
)
inlinestatic

Definition at line 43 of file EventSourceExtensions.cs.

43  {
44  source.OnInformation(message, InformationLevel.Information);
45  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnInformation ( this IEventSource  source,
string  message,
InformationLevel  level 
)
inlinestatic

Definition at line 47 of file EventSourceExtensions.cs.

47  {
48  source.OnEvent(new InformationEvent(message, level));
49  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnPerformance ( this IEventSource  source,
string  key,
object  value 
)
inlinestatic

Definition at line 59 of file EventSourceExtensions.cs.

59  {
60  source.OnEvent(new PerformanceEvent(key, value));
61  }
static void Deveel.Data.Diagnostics.EventSourceExtensions.OnVerbose ( this IEventSource  source,
string  message 
)
inlinestatic

Definition at line 51 of file EventSourceExtensions.cs.

51  {
52  source.OnInformation(message, InformationLevel.Verbose);
53  }

The documentation for this class was generated from the following file: