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

Subscribes to log events.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Clear ( ) : void

Clears all subscriptions

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IgnoreAll ( VerboseLevel level ) : void

Ignore all messages of this verbose level.

IgnoreAssembly ( Assembly assembly, VerboseLevel level ) : void

Ignore all messages of this verbose level.

IgnoreAssembly ( string assemblyExpression, VerboseLevel level ) : void

Ignore all messages of this verbose level.

IgnoreType ( Type type, VerboseLevel level ) : void

Ignore all messages of this verbose level.

IgnoreType ( string typeExpression, VerboseLevel level ) : void

Ignore all messages of this verbose level.

SubscribeToAll ( VerboseLevel level ) : void

Subscribes to all publishers with the specified verbose level.

SubscribeToAssembly ( Assembly assembly, VerboseLevel level ) : void

Subscribes to the publisher of the specified assembly with the specified verbose level.

SubscribeToAssembly ( string assemblyExpression, VerboseLevel level ) : void

Subscribes to the publisher of the specified assembly with the specified verbose level.

SubscribeToType ( Type type, VerboseLevel level ) : void

Subscribes to the publisher of the specified type with the specified verbose level.

SubscribeToType ( string typeExpression, VerboseLevel level ) : void

Subscribes to the publisher of the specified type expression with the specified verbose level.

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

Метод Описание
LogSubscriber ( LogSubscriberInternal subscriber ) : System

Creates a LogSubscriber

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

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

Clears all subscriptions
public Clear ( ) : void
Результат void

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

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
Результат void

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

Ignore all messages of this verbose level.
public IgnoreAll ( VerboseLevel level ) : void
level VerboseLevel
Результат void

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

Ignore all messages of this verbose level.
public IgnoreAssembly ( Assembly assembly, VerboseLevel level ) : void
assembly System.Reflection.Assembly
level VerboseLevel
Результат void

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

Ignore all messages of this verbose level.
public IgnoreAssembly ( string assemblyExpression, VerboseLevel level ) : void
assemblyExpression string
level VerboseLevel
Результат void

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

Ignore all messages of this verbose level.
public IgnoreType ( Type type, VerboseLevel level ) : void
type System.Type
level VerboseLevel
Результат void

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

Ignore all messages of this verbose level.
public IgnoreType ( string typeExpression, VerboseLevel level ) : void
typeExpression string
level VerboseLevel
Результат void

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

Subscribes to all publishers with the specified verbose level.
public SubscribeToAll ( VerboseLevel level ) : void
level VerboseLevel
Результат void

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

Subscribes to the publisher of the specified assembly with the specified verbose level.
public SubscribeToAssembly ( Assembly assembly, VerboseLevel level ) : void
assembly System.Reflection.Assembly
level VerboseLevel
Результат void

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

Subscribes to the publisher of the specified assembly with the specified verbose level.
public SubscribeToAssembly ( string assemblyExpression, VerboseLevel level ) : void
assemblyExpression string An expression of the name of an assembly. Must include a * or ? to be considered an expression.
level VerboseLevel The level
Результат void

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

Subscribes to the publisher of the specified type with the specified verbose level.
public SubscribeToType ( Type type, VerboseLevel level ) : void
type System.Type
level VerboseLevel
Результат void

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

Subscribes to the publisher of the specified type expression with the specified verbose level.
public SubscribeToType ( string typeExpression, VerboseLevel level ) : void
typeExpression string An expression of the name of a type. Must include a * or ? to be considered an expression.
level VerboseLevel The level
Результат void