Table of Contents

Class LogTag

Namespace
RisingV.Shared.Logging
Assembly
RisingV.Shared.dll

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 string

The 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 string

The space of the log tag, used for categorization.

parent ILogTag

The parent tag of this log tag, allowing for hierarchical organization. Can be null if this is a top-level tag.

name string

The 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 string

The space of the log tag, used for categorization.

name string

The 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

string

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

ILogTag

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

string

Methods

Equals(LogTag)

Determines whether the specified LogTag is equal to the current LogTag.

protected bool Equals(LogTag other)

Parameters

other LogTag

The LogTag to compare with the current LogTag.

Returns

bool

True if the specified LogTag is equal to the current LogTag; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current LogTag.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current LogTag.

Returns

bool

True if the specified object is equal to the current LogTag; otherwise, false.

GetHashCode()

Gets a hash code for the current LogTag instance.

public override int GetHashCode()

Returns

int

A hash code for the current LogTag instance.

ToString()

Returns a string representation of the LogTag instance.

public override string ToString()

Returns

string

A string that represents the current LogTag instance.