C# Класс GSF.Diagnostics.LoggerInternal

The fundamental functionality of Logger.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CreateSubscriber() публичный Метод

Creates a LogSubscriber that can subscribe to log messages.
public CreateSubscriber ( ) : LogSubscriberInternal
Результат LogSubscriberInternal

CreateType() публичный Метод

Creates a type topic on a specified type.
public CreateType ( Type type ) : LogPublisherInternal
type System.Type the type to create the topic from
Результат LogPublisherInternal

Dispose() публичный Метод

Gracefully terminate all message routing. Function blocks until all termination is successful.
public Dispose ( ) : void
Результат void

LoggerInternal() публичный Метод

Creates a LoggerInternal.
public LoggerInternal ( LoggerInternal &loggerClass ) : System
loggerClass LoggerInternal
Результат System

OnNewMessage() публичный Метод

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.
Результат void