Class MessageFilterExpression
Defines an expression used for log message filtering. Important: it is not a good practice to create many different scopes as it leads to creation of many assemblies dynamically
Inheritance
System.Object
MessageFilterExpression
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Azos.Log
Assembly: Azos.dll
Syntax
public class MessageFilterExpression : CompilingExpressionEvaluator<Sink, bool, Message>
Constructors
MessageFilterExpression(String)
Creates a new expression in a default logging filter scope. This .ctor will fail if at least one expression from this scope has already been compiled
Declaration
public MessageFilterExpression(string expr)
Parameters
Type | Name | Description |
---|---|---|
System.String | expr |
MessageFilterExpression(String, String, IEnumerable<String>, IEnumerable<String>)
Use this .ctor to specify a different scope name. Every unique scope name gets compiled into a new assembly, consequently it is not a good practice to create many different scopes. This .ctor will fail if at least one expression from this scope has already been compiled
Declaration
public MessageFilterExpression(string scope, string expr, IEnumerable<string> referencedAssemblies = null, IEnumerable<string> usings = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | scope | |
System.String | expr | |
System.Collections.Generic.IEnumerable<System.String> | referencedAssemblies | |
System.Collections.Generic.IEnumerable<System.String> | usings |
Fields
SCOPE
Declaration
public const string SCOPE = "_AZOS._Log._Filtering"
Field Value
Type | Description |
---|---|
System.String |