Skip to content

Output Class

Definition

namespace Sharplog.Outputs

public abstract class Output
Object
Output

Base class for all outputs.

Constructors

Name
Output(string, LevelContainer)

Properties

Name Type GET SET
Format string
Levels LevelContainer

Methods

Name Modifiers Returns
Write(string, Log) public abstract

Constructors

Output(string, LevelContainer)

public Output(
    string format = null, 
    LevelContainer levels = null)

Initializes a new instance of the Output class.

Parameter

format string · null
The format.
levels LevelContainer · null
The level settings.

Properties

Format

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

Gets or sets the format for the output.

Levels

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

Gets or sets the level settings for the output.

Methods

Write(string, Log)

public abstract void Write(string formattedLog, Log log)

Writes the specified formatted log.

Parameter

formattedLog string ·
The formatted log.
log Log ·
The log information.