Class I3LogEventClientMgr
Class for managing multiple I3 logging clients. To use this class, create an instance of it, create I3LogEventClient objects and add them to the list of managed clients by calling the AddLoggingClient() method, hook the events of this class if desired and then call the Start() method of this class. Note: Do not call the Start() method of the I3LogEventClient class. Call the Shutdown() method of this class to gracefully shutdown a logging clients.
Inherited Members
Namespace: I3V3.LoggingHelpers
Assembly: Ng911Lib.dll
Syntax
public class I3LogEventClientMgr
Methods
| Edit this page View SourceAddLoggingClient(I3LogEventClient)
Adds a new I3LogEventClient object to the list of manage logging clients.
Declaration
public void AddLoggingClient(I3LogEventClient client)
Parameters
Type | Name | Description |
---|---|---|
I3LogEventClient | client | New client to add. |
SendLogEvent(LogEvent)
Sends a log event to each of the managed clients. This method is thread-safe.
Declaration
public void SendLogEvent(LogEvent logEvent)
Parameters
Type | Name | Description |
---|---|---|
LogEvent | logEvent | Log event to send to all log event servers. |
Shutdown()
Shuts down all of the managed log event client objects. Do not call any other methods of this class after calling ShutDown().
Declaration
public void Shutdown()
Start()
Starts all managed log event clients.
Declaration
public void Start()
Events
| Edit this page View SourceLoggingServerError
This event is fired if an exception occurred when sending a log event to the logging server or if the logging server responded with a a status code other than 200 or 201.
Declaration
public event I3LoggingErrorDelegate LoggingServerError
Event Type
Type | Description |
---|---|
I3LoggingErrorDelegate |
LoggingServerStatusChanged
This event is fired when the status of the logging server changed.
Declaration
public event LoggingServerStatusChangedDeletate LoggingServerStatusChanged
Event Type
Type | Description |
---|---|
LoggingServerStatusChangedDeletate |