Table of Contents

Class LogEntry

Namespace
FishMMO.Logging
Assembly
FishMMO-Logger.dll

Represents a single log entry with structured information.

public class LogEntry
Inheritance
LogEntry
Inherited Members

Constructors

LogEntry(LogLevel, string, string, Exception, Dictionary<string, object>)

public LogEntry(LogLevel level, string source, string message, Exception exception = null, Dictionary<string, object> data = null)

Parameters

level LogLevel
source string
message string
exception Exception
data Dictionary<string, object>

Properties

Data

public Dictionary<string, object> Data { get; set; }

Property Value

Dictionary<string, object>

ExceptionDetails

public string ExceptionDetails { get; set; }

Property Value

string

Level

public LogLevel Level { get; set; }

Property Value

LogLevel

Message

public string Message { get; set; }

Property Value

string

Source

public string Source { get; set; }

Property Value

string

Timestamp

public DateTime Timestamp { get; set; }

Property Value

DateTime

Methods

ToString()

Returns a string that represents the current object.

public override string ToString()

Returns

string

A string that represents the current object.