Class MultiTagMessage
Represents a message with multiple tags for categorization and filtering.
public class MultiTagMessage
- Inheritance
-
MultiTagMessage
- Inherited Members
- Extension Methods
Constructors
MultiTagMessage(object, params string[])
Initializes a new instance of the MultiTagMessage class with the specified message and tags.
public MultiTagMessage(object message, params string[] tags)
Parameters
Properties
Message
Gets or sets the message content.
public object Message { get; set; }
Property Value
Tags
Gets or sets the collection of tags associated with this message.
public HashSet<string> Tags { get; set; }
Property Value
Methods
Error(string, params string[])
Creates a Error message.
public static MultiTagMessage Error(string message, params string[] otherTags)
Parameters
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Error
Exception(Exception, params string[])
Creates a Exception message.
public static MultiTagMessage Exception(Exception exception, params string[] otherTags)
Parameters
exceptionExceptionThe exception to log
otherTagsstring[]Additional tags to associate with the message
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Exception
Info(string, params string[])
Creates a Info message.
public static MultiTagMessage Info(string message, params string[] otherTags)
Parameters
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Info
Progress(string, params string[])
Creates a Progress message.
public static MultiTagMessage Progress(string message, params string[] otherTags)
Parameters
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Progress
Success(string, params string[])
Creates a Success message.
public static MultiTagMessage Success(string message, params string[] otherTags)
Parameters
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Success
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Warning(string, params string[])
Creates a Warning message.
public static MultiTagMessage Warning(string message, params string[] otherTags)
Parameters
Returns
- MultiTagMessage
A new MultiTagMessage tagged with Warning