This page is under construction.Logging and TracingGigaSpaces XAP.NET components use the tracing mechanism for logging/tracing, built-in with the .NET framework. This gives the user, control over tracing behavior using the standard .NET configuration schema. Users can:
If the user does not specify a configuration, the default configuration is assumed.
Basic ConfigurationTo configure the GigaSpaces logger, you need to add a trace source configuration named GigaSpaces.Core to your configuration file (app.config/web.config). Use the switchValue argument to set the trace level to one of the following: Off, Critical, Error, Warning, Information, Verbose. (Naturally, each level includes all its predecessors, e.g. Error includes Critical as well). Use the listeners collection to add trace listeners which handle the traced events. The following example sets the trace level to Error, which means that only errors and critical events are processed. It also defines a single trace listener, which writes traced messages to the Windows Event Log, under a source called GigaSpaces.Core. <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.diagnostics> <sources> <source name="GigaSpaces.Core" switchValue="Error"> <listeners> <add name="MyListener" type="System.Diagnostics.EventLogTraceListener" initializeData="GigaSpaces.Core"/> </listeners> </source> </sources> </system.diagnostics> </configuration> There are several logging components split into different subjects. They should be configured in the same way, but using a different source name. The available components are:
Default ConfigurationThe logger component loads the configuration during initialization. If it does not find a source element named GigaSpaces.Core, it loads a default configuration, which sets the trace level to Information, and configures an EventLogTraceListener with source=GigaSpaces.Core, (similar to the configuration shown in the basic example).
Advanced ConfigurationHere are some features/scenarios which might be useful:
|
![]() |
GigaSpaces.com - Legal Notice - 3rd Party Licenses - Site Map - API Docs - Forum - Downloads - Blog - White Papers - Contact Tech Writing - Gen. by Atlassian Confluence |