Skip to content

Class Log

Namespace: Apogee.Core.Logging
Assembly: Apogee.Core.dll

The engine's log. Entries below are dropped before they reach a sink.

public static class Log

Inheritance

object ← Log

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Properties

MinimumLevel

public static LogLevel MinimumLevel { get; set; }

Property Value

LogLevel

Methods

AddSink(ILogSink)

public static void AddSink(ILogSink sink)

Parameters

sink ILogSink

Debug(string, string)

public static void Debug(string category, string message)

Parameters

category string

message string

Error(string, string)

public static void Error(string category, string message)

Parameters

category string

message string

Info(string, string)

public static void Info(string category, string message)

Parameters

category string

message string

IsEnabled(LogLevel)

public static bool IsEnabled(LogLevel level)

Parameters

level LogLevel

Returns

bool

RemoveSink(ILogSink)

public static void RemoveSink(ILogSink sink)

Parameters

sink ILogSink

Trace(string, string)

public static void Trace(string category, string message)

Parameters

category string

message string

Warn(string, string)

public static void Warn(string category, string message)

Parameters

category string

message string

Write(LogLevel, string, string)

public static void Write(LogLevel level, string category, string message)

Parameters

level LogLevel

category string

message string