C# Class GSF.Diagnostics.LoggerInternal

The fundamental functionality of Logger.
Inheritance: IDisposable
Mostrar archivo Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
CreateSubscriber ( ) : LogSubscriberInternal

Creates a LogSubscriber that can subscribe to log messages.

CreateType ( Type type ) : LogPublisherInternal

Creates a type topic on a specified type.

Dispose ( ) : void

Gracefully terminate all message routing. Function blocks until all termination is successful.

LoggerInternal ( LoggerInternal &loggerClass ) : System

Creates a LoggerInternal.

OnNewMessage ( LogMessage message, LogPublisherInternal publisher ) : void

Handles the routing of messages through the logging system.

Private Methods

Method Description
CalculateRoutingTable ( object sender, EventArgs e ) : void

Recalculates the entire routing table on a separate thread.

CalculateRoutingTableForPublisherSync ( List subscribers, LogPublisherInternal publisher ) : void

This method should be called with a lock on m_syncRoot

RecalculateRoutingTable ( ) : void

Invalidates the current routing table.

RoutingTask ( object sender, EventArgs e ) : void

Method Details

CreateSubscriber() public method

Creates a LogSubscriber that can subscribe to log messages.
public CreateSubscriber ( ) : LogSubscriberInternal
return LogSubscriberInternal

CreateType() public method

Creates a type topic on a specified type.
public CreateType ( Type type ) : LogPublisherInternal
type System.Type the type to create the topic from
return LogPublisherInternal

Dispose() public method

Gracefully terminate all message routing. Function blocks until all termination is successful.
public Dispose ( ) : void
return void

LoggerInternal() public method

Creates a LoggerInternal.
public LoggerInternal ( LoggerInternal &loggerClass ) : System
loggerClass LoggerInternal
return System

OnNewMessage() public method

Handles the routing of messages through the logging system.
public OnNewMessage ( LogMessage message, LogPublisherInternal publisher ) : void
message LogMessage the message to route
publisher LogPublisherInternal the publisher that is originating this message.
return void