Creates a new TagManager instance.
Configuration options
Adds tags with optional schema validation.
Tags to add
Whether tags were successfully added
Add tag alias.
Alias tag
Target tag
Clears all tags.
Clear tag statistics.
Clean up resources.
Get tag with hierarchy.
Tag to expand
Include parent tags
Include child tags
Expanded tags
Extract tags from text.
Text to extract from
Extraction options
Extracted tags
Filter tags based on criteria.
Tags to filter
Filter options
Filtered tags
Format tags to string.
Tags to format
Optional
separator: stringSeparator to use
Formatted string
Get all aliases.
All aliases
Gets all tags (both string and structured).
All tags
Get tag children.
Parent tag
Child tags
Get comprehensive tag statistics.
Tag statistics
Get tag parents.
Child tag
Parent tags
Get tag statistics.
Optional
limit: numberLimit results
Tag counts
Check if tags match criteria.
Tags to check
Match criteria
Whether tags match
Merge multiple tag arrays.
Tag arrays to merge
Merged tags
Normalize tags according to rules.
Tags to normalize
Normalized tags
Parse tags from string.
Text to parse
Optional
separator: stringSeparator to use
Parsed tags
Remove tag alias.
Alias to remove
Set tag hierarchy.
Parent tag
Child tags
Set normalization rules.
Normalization rules
Sets a schema for structured tag validation.
Schema definition for tags
Optional
mode: "warn" | "silent" | "throw"Validation mode
Set validation rules.
Validation rules
Get suggested tags based on partial input.
Partial tag
Optional
limit: number = 10Maximum suggestions
Suggested tags
Update tag statistics.
Tags to count
Validate tags against rules.
Tags to validate
Validation result
Manages tags for log entries with optional schema validation.
Provides comprehensive tag management including:
TagManager
Example: Basic string tags
Example: Structured tags with schema validation