C# Class GSF.Diagnostics.LogSubscriber

Subscribes to log events.
Inheritance: IDisposable
Datei anzeigen Open project: GridProtectionAlliance/gsf Class Usage Examples

Public Methods

Method Description
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.

Private Methods

Method Description
LogSubscriber ( LogSubscriberInternal subscriber ) : System

Creates a LogSubscriber

Method Details

Clear() public method

Clears all subscriptions
public Clear ( ) : void
return void

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

IgnoreAll() public method

Ignore all messages of this verbose level.
public IgnoreAll ( VerboseLevel level ) : void
level VerboseLevel
return void

IgnoreAssembly() public method

Ignore all messages of this verbose level.
public IgnoreAssembly ( Assembly assembly, VerboseLevel level ) : void
assembly System.Reflection.Assembly
level VerboseLevel
return void

IgnoreAssembly() public method

Ignore all messages of this verbose level.
public IgnoreAssembly ( string assemblyExpression, VerboseLevel level ) : void
assemblyExpression string
level VerboseLevel
return void

IgnoreType() public method

Ignore all messages of this verbose level.
public IgnoreType ( Type type, VerboseLevel level ) : void
type System.Type
level VerboseLevel
return void

IgnoreType() public method

Ignore all messages of this verbose level.
public IgnoreType ( string typeExpression, VerboseLevel level ) : void
typeExpression string
level VerboseLevel
return void

SubscribeToAll() public method

Subscribes to all publishers with the specified verbose level.
public SubscribeToAll ( VerboseLevel level ) : void
level VerboseLevel
return void

SubscribeToAssembly() public method

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
return void

SubscribeToAssembly() public method

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
return void

SubscribeToType() public method

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
return void

SubscribeToType() public method

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
return void