Severity of a log message

Namespace: Dapfor.Net.Diagnostics
Assembly: Dapfor.Net (in Dapfor.Net.dll) Version: 2.10.3.24917 (2.10.3.24917)

Syntax

C#
public enum Severity
Visual Basic
Public Enumeration Severity
Visual C++
public enum class Severity
F#
type Severity

Members

Member nameValueDescription
Debug0 The log message has 'Debug' severity
Info1 The log message has 'Info' severity
Warning2 The log message has 'Warning' severity
Error3 The log message has 'Error' severity
Fatal4 The log message has 'Fatal' severity

Examples

 Copy imageCopy
public enum Way
{
    Buy,
    Sell,
}

public sealed class Quote
{
    private readonly long qty;
    private readonly decimal price;
    private readonly Way way;

    public Quote(long qty, decimal price, Way way)
    {
        this.qty = qty;
        this.price = price;
        this.way = way;
    }

    public long Qty
    {
        get { return qty; }
    }
    public decimal Price
    {
        get { return price; }
    }
    public Way Way
    {
        get { return way; }
    }
}

Logger.Info("Hey, I just got a new price", new Quote(31911, 41, Way.Buy));

See Also