Class LogTag
Represents a tag for logging purposes, allowing for hierarchical organization of log messages.
public class LogTag : ILogTag
- Inheritance
-
LogTag
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
LogTag(string)
Initializes a new instance of the LogTag class with the specified full tag name.
public LogTag(string full)
Parameters
full
stringThe full tag name, which may include a space and a name separated by a dot.
LogTag(string, ILogTag, string)
Initializes a new instance of the LogTag class with the specified space, parent tag, and name.
public LogTag(string space, ILogTag parent, string name = "")
Parameters
space
stringThe space of the log tag, used for categorization.
parent
ILogTagThe parent tag of this log tag, allowing for hierarchical organization. Can be null if this is a top-level tag.
name
stringThe name of the log tag. If not provided, it defaults to the parent's name if available.
LogTag(string, string)
Initializes a new instance of the LogTag class with the specified space and name.
public LogTag(string space, string name)
Parameters
space
stringThe space of the log tag, used for categorization.
name
stringThe name of the log tag. This is typically a descriptive string that identifies the tag.
Properties
Name
Gets the name of the log tag. This is typically a descriptive string that identifies the tag.
public string Name { get; }
Property Value
Parent
Gets the parent tag of this log tag, if any. This allows for a hierarchical structure of tags.
public ILogTag? Parent { get; }
Property Value
Space
Gets the space of the log tag, which is a string that can be used to categorize or group log messages.
public string Space { get; }
Property Value
Methods
Equals(LogTag)
protected bool Equals(LogTag other)
Parameters
Returns
Equals(object?)
Determines whether the specified object is equal to the current LogTag.
public override bool Equals(object? obj)
Parameters
Returns
GetHashCode()
Gets a hash code for the current LogTag instance.
public override int GetHashCode()
Returns
ToString()
Returns a string representation of the LogTag instance.
public override string ToString()