Skip to content

BaseSettings Class

Definition

namespace Sharplog.Settings

public class BaseSettings : IDisposable

Object
BaseSettings

Implements: System.IDisposable

Base class containing all settings.

Constructors

Name
BaseSettings(string, LevelContainer, OutputContainer, Dictionary<string, Tag>)

Properties

Name Type GET SET
Format string
Levels LevelContainer
Outputs OutputContainer
Tags Dictionary<string, Tag>

Inherited methods

Name Modifiers Returns
Dispose() public

Constructors

BaseSettings(string, LevelContainer, OutputContainer, Dictionary<string, Tag>)

public BaseSettings(
    string fomat = "$D$: [$L$]$Cp{ [}s{] }$$Tp{ [}s{] }$ $M$$Ep{\nException: }$$Sp{\nStackTrace: }$",
    LevelContainer levels = null,
    OutputContainer outputs = null,
    Dictionary<string, Tag> tags = null)

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

Parameter

format string · "$D$: [$L$]$Cp{ [}s{] }$$Tp{ [}s{] }$ $M$$Ep{\nException: }$$Sp{\nStackTrace: }$"
The format.
levels LevelContainer · null
The levels.
outputs OutputContainer · null
The outputs.
tags Dictionary<string, Tag> · null
The tags.

Properties

Format

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

Gets or sets the general format.

Levels

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

Gets or sets the general levels.

Outputs

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

Gets or sets the general outputs.

Tags

public Dictionary<string, Tag> Tags { get; set; }
Type: Dictionary<string, Tag>

Gets or sets the tags.