Skip to content

Tag Class

Definition

namespace Sharplog.Settings

public class Tag : IDisposable

Object
Tag

Implements: System.IDisposable

Class containing settings of a tag.

Constructors

Name
Tag()
Tag(bool, string, LevelContainer, OutputContainer)

Properties

Name Type GET SET
Enabled bool
Format string
Levels LevelContainer
Outputs OutputContainer

Inherited methods

Name Modifiers Returns
Dispose() public

Constructors

Tag()

public Tag()
    : this(true, null, null, null)

Initializes a new instance of the Tag class using default settings if not provided.

Tag(bool, string, LevelContainer, OutputContainer)

public Tag(
    bool enabled = true,
    string format = null,
    LevelContainer levels = null,
    OutputContainer outputs = null)

Initializes a new instance of the Tag class using default settings if not provided.

Parameter

enabled bool · true
Wether the tag is enabled.
format string · null
The format.
levels LevelContainer · null
The levels.
outputs OutputContainer · null
The outputs.

Properties

Enabled

public bool Enabled { get; set; }
Type: bool

Gets or sets a value indicating whether this tag is enabled.

Format

public string Format { get; set; }
Type: string

Gets or sets the format.

Levels

public LevelContainer Levels { get; set; }
Type: LevelContainer

Gets or sets the level settings.

Outputs

public OutputContainer Outputs { get; set; }
Type: OutputContainer

Gets or sets the outputs.